windowsforms-devexpress-dot-xtrabars-dot-docking-f9b542db.md
Occurs when the DockPanel.ActiveChild property of the restored tab container is not specified.
Namespace : DevExpress.XtraBars.Docking
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
public class TabContainerActiveChildNotSetException :
RestoreLayoutException
Public Class TabContainerActiveChildNotSetException
Inherits RestoreLayoutException
Follow the steps below to fix this exception:
void dockManager1_RestoreLayoutError(object sender, DevExpress.Utils.Serializing.RestoreLayoutErrorEventArgs e) {
foreach (var exception in e.Exceptions) {
if (exception is TabContainerActiveChildNotSetException activeChildException)
activeChildException.Panel.ActiveChild = activeChildException.Panels[1];
}
e.Throw = false;
}
Object Exception SystemException InvalidOperationException DevExpress.Utils.Serializing.RestoreLayoutException TabContainerActiveChildNotSetException
See Also