<igDock:XamDockManager Name="xamDockManager1" > <igDock:XamDockManager.Panes> <igDock:SplitPane Height="200" Name="xamMyPane" igDock:XamDockManager.InitialLocation="DockedBottom"> <igDock:ContentPane Header="myContentPane"> <local:UserControlMyUserControl x:Name="MyUserControl"/> </igDock:ContentPane> </igDock:SplitPane> </igDock:XamDockManager.Panes>
then in code behind in window closing event:
IEnumerable<ContentPane> panes = this.xamDockManager1.GetPanes(PaneNavigationOrder.VisibleOrder); panes.ToList().ForEach(x => { Debug.WriteLine(x.Name); });
All names are blank. Yet x is still equal to the valid pane (header properties, etc.)
You set a name on the splitpane and your usercontrol but not the contentpane.