TabContainerActiveChildNotSetException Class
Occurs when the DockPanel.ActiveChild property of the restored tab container is not specified.
Namespace: DevExpress.XtraBars.Docking
Assembly: DevExpress.XtraBars.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
Remarks
Follow the steps below to fix this exception:
- Handle the DockManager.RestoreLayoutError event.
- Assign a panel from the container to the ActiveChild property.
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;
}
Inheritance
Object
Exception
SystemException
InvalidOperationException
DevExpress.Utils.Serializing.RestoreLayoutException
TabContainerActiveChildNotSetException
See Also