Hi,
I tried to use the new docksite linking feature. I've got two docksites. One is the main docksite and the other is a child of a DocumentWindow in a TabbedMdiContainer. I link both docksites to be able to drag windows from the nested docksite to the main one and vice versa. This works but I don't know how to serialize the layout. Currently I serialize both docksites separately.
When I don't move windows from the nested docksite to the main docksite serialization works. But if a window from the nested docksite is docked into the main docksite this window is not there anymore after restoring the layout.
Am I doing something wrong? This is the docksite part of my xaml file.
I tried to use the new docksite linking feature. I've got two docksites. One is the main docksite and the other is a child of a DocumentWindow in a TabbedMdiContainer. I link both docksites to be able to drag windows from the nested docksite to the main one and vice versa. This works but I don't know how to serialize the layout. Currently I serialize both docksites separately.
When I don't move windows from the nested docksite to the main docksite serialization works. But if a window from the nested docksite is docked into the main docksite this window is not there anymore after restoring the layout.
Am I doing something wrong? This is the docksite part of my xaml file.
<docking:DockSite Grid.Row="2" x:Name="dockSite" CanDocumentWindowsRaft="True">
<!-- NOTE: Split containers can contain two elements, which are typically ToolWindowContainers (with 1 or more tool windows)
and one (and only one) Workspace -->
<docking:SplitContainer Orientation="Horizontal" x:Name="LeftAndResourcesContainer"
docking:DockSite.ControlSize="800,600">
<docking:SplitContainer Orientation="Vertical" x:Name="MainAndSequencerContainer"
docking:DockSite.ControlSize="600,600">
<docking:SplitContainer Orientation="Horizontal" x:Name="NavigationAndMainContainer"
docking:DockSite.ControlSize="400,400">
<docking:ToolWindowContainer x:Name="NavigationContainer"
docking:DockSite.ControlSize="200,400">
<docking:ToolWindow x:Name="ComponentTreeViewWindow" Title="Scene View">
<UserControls:WPFComponentTree x:Name="ComponentTreeView"/>
</docking:ToolWindow>
<docking:ToolWindow x:Name="LogicalTreeViewWindow" Title="Logical View">
<UserControls:LogicalTree x:Name="LogicalTreeView"/>
</docking:ToolWindow>
<docking:ToolWindow x:Name="HistoryTreeViewWindow" Title="History">
<UserControls:WPFHistoryView x:Name="HistoryView"/>
</docking:ToolWindow>
</docking:ToolWindowContainer>
<docking:SplitContainer Orientation="Vertical" x:Name="MainAndLogContainer">
<docking:Workspace x:Name="MdiWorkspace">
<docking:TabbedMdiHost x:Name="MdiTabbedHost" CanDocumentsDockLeft ="True">
<docking:TabbedMdiContainer x:Name="TabbedMdiContainer">
<!-- render views -->
<docking:DocumentWindow x:Name="RenderViewsWindow" Title="Render Views" CanAttach="True">
<docking:DockSite x:Name="RenderViewsDockSite" UseHostedAutoHidePopups="False" >
<docking:SplitContainer x:Name="RenderViewsContainer" Orientation="Vertical"
docking:DockSite.ControlSize="400,400">
<docking:SplitContainer Orientation="Horizontal" x:Name="SplitContainerTop">
<docking:ToolWindowContainer x:Name="LeftViewContainer">
<!-- Left -->
<docking:ToolWindow x:Name="LeftView" Title="Left">
<WindowsFormsHost x:Name="RenderViewLeft"
ContextMenu="{StaticResource
OrthogonalRenderViewContextMenu}">
<wf:Panel Name="RenderViewControlLeft"/>
</WindowsFormsHost>
</docking:ToolWindow>
</docking:ToolWindowContainer>
<docking:ToolWindowContainer x:Name="TopViewContainer">
<!-- Top -->
<docking:ToolWindow x:Name="TopView" Title="Top">
<WindowsFormsHost x:Name="RenderViewTop"
ContextMenu="{StaticResource
OrthogonalRenderViewContextMenu}">
<wf:Panel Name="RenderViewControlTop"/>
</WindowsFormsHost>
</docking:ToolWindow>
</docking:ToolWindowContainer>
</docking:SplitContainer>
<docking:SplitContainer Orientation="Horizontal" x:Name="SplitContainerBottom">
<docking:ToolWindowContainer x:Name="FrontViewContainer">
<!-- Front -->
<docking:ToolWindow x:Name="FrontView" Title="Front">
<WindowsFormsHost x:Name="RenderViewFront"
ContextMenu="{StaticResource
OrthogonalRenderViewContextMenu}">
<wf:Panel Name="RenderViewControlFront"/>
</WindowsFormsHost>
</docking:ToolWindow>
</docking:ToolWindowContainer>
<docking:ToolWindowContainer x:Name="PerspectiveViewContainer">
<!-- Perspective -->
<docking:ToolWindow x:Name="PerspectiveView" Title="Perspective">
<WindowsFormsHost x:Name="RenderViewPerspective"
ContextMenu="{StaticResource
PerspectiveRenderViewContextMenu}">
<UserControls:RenderPanelHost Name="RenderViewControlPerspective"/>
</WindowsFormsHost>
</docking:ToolWindow>
</docking:ToolWindowContainer>
</docking:SplitContainer>
</docking:SplitContainer>
</docking:DockSite>
</docking:DocumentWindow>
<docking:ToolWindow x:Name="PropertyGridWindow" Title="Properties">
<UserControls:WPFPropertyGrid x:Name="PropertyGrid"/>
</docking:ToolWindow>
<docking:ToolWindow x:Name="SnapshotWindow" Title="Snapshot">
<UserControls:WPFSnapshotView x:Name="SnapshotView"/>
</docking:ToolWindow>
</docking:TabbedMdiContainer>
</docking:TabbedMdiHost>
</docking:Workspace>
<docking:ToolWindowContainer x:Name="LogContainer"
docking:DockSite.ControlSize="400,100">
<docking:ToolWindow x:Name="Log" Title="Log">
<UserControls:LogWindow x:Name="LogView"/>
</docking:ToolWindow>
</docking:ToolWindowContainer>
</docking:SplitContainer>
</docking:SplitContainer>
<docking:ToolWindowContainer docking:DockSite.ControlSize="600,150">
<docking:ToolWindow Title="Sequencer" x:Name="SequencerWindow">
<UserControls:WPFSequencerView x:Name="SequencerView"/>
</docking:ToolWindow>
</docking:ToolWindowContainer>
</docking:SplitContainer>
<docking:ToolWindowContainer x:Name="ResourcesAndMacroContainer"
docking:DockSite.ControlSize="200,600">
<docking:ToolWindow Title="Resources" x:Name="ResourceWindow">
<UserControls:WPFResourceView x:Name="ResourceView"/>
</docking:ToolWindow>
<docking:ToolWindow Title="Macro Recorder" x:Name="MacroRecorderView">
<UserControls:WPFCommandRecorderControl x:Name="MacroRecorder"/>
</docking:ToolWindow>
<docking:ToolWindow Title="Sequencer Overview" x:Name="SequencerOverviewWindow">
<UserControls:WPFSequencerStatistic x:Name="SequencerStatisticView"/>
</docking:ToolWindow>
<docking:ToolWindow Title="Edit Keyframe" x:Name="EditKeyframeWindow">
<UserControls:EditKeyframeDialog x:Name="EditKeyframeView"/>
</docking:ToolWindow>
<!-- Message View -->
<docking:ToolWindow Title="Message mappings" x:Name="MessageManagerWindow">
<UserControls:MessageView x:Name="MessageManagerView"/>
</docking:ToolWindow>
</docking:ToolWindowContainer>
</docking:SplitContainer>
</docking:DockSite>