Hi,
<Grid>
<docking:DockSite x:Name="Basedocksite1">
<docking:Workspace>
<docking:DockSite x:Name="BaseDocksite2">
<docking:Workspace>
<Grid><Grid.RowDefinitions><RowDefinition/><RowDefinition/><RowDefinition/></Grid.RowDefinitions>
<docking:DockSite x:Name="docksite1" Grid.Row="0">
<docking:ToolWindowContainer><docking:ToolWindow Title="toolwindow1"></docking:ToolWindow></docking:ToolWindowContainer></docking:DockSite>
<docking:DockSite Grid.Row="1" x:Name="docksite2">
<docking:ToolWindowContainer><docking:ToolWindow Title="toolwindow2"></docking:ToolWindow></docking:ToolWindowContainer></docking:DockSite>
<docking:DockSite Grid.Row="2" x:Name="docksite3">
<docking:SplitContainer><docking:ToolWindowContainer><docking:ToolWindow Title="toolwindow3"></docking:ToolWindow></docking:ToolWindowContainer>
<docking:ToolWindowContainer>
<docking:ToolWindow Title="toolwindow4"></docking:ToolWindow></docking:ToolWindowContainer></docking:SplitContainer></docking:DockSite>
</Grid>
</docking:Workspace>
</docking:DockSite>
</docking:Workspace>
</docking:DockSite>
</Grid>
and in the code behind i am setting
this.docksite1.LinkDockSite(Basedocksite1);
this.docksite2.LinkDockSite(BaseDocksite2);
Problem 1.
Case1:
When user drag the toolwindow1 and as it is linked to the basedockite1 and dock the toolwindow1 to the right of the docksite1.and docked position(right) is saved and whenever user close this toolwindow and again reopen the toolwindow using any button click it will dispaly on the dockedposition(right) of the basedocksite1 and then user drag the toolwindow2 and as it is linked to the basedockite2 and dock the toolwindow2 to the top of the docksite2.and docked position(top ) is saved and whenever user close this toolwindow and again reopen the toolwindow using any button click it will dispaly on the dockedposition(top) of the basedocksite1.Now Toolwindow2 is on the top of the toolwindow1.
Case2:
if user close the toolwindow2 and then close the toolwindow1.and then user click the button for toolwindow2 and as it will docked to the top position(docked position) of
the Basedocksite2 and then user will click the button for the toolwindow1 and as it will docked to the right position(docked position) of the Basedocksite.
Now the look is different means in the first case toolwinow2 was above of the toolwindow1 but in the second case toolwindow1 is rightof the toolwindoow2.
How we should do programming like toolwindow1 should be in the right of the basedocksite1 but below of the toolwindow2which is on the top of the Basedocksite2.
Problem2: In above sample toolwindow3 and toolwindow4 are in the same dockite so is
there any way so that toolwindow3 can't dock in to the toolwindow4 or viceversa.