Hi,
I am trying to find out docked direction of my toolwindow using toolwindow.GetDirectionRelativeToWorkspace() method but its returning None.
Below is my sample xaml code:
<DockPanel LastChildFill="True">
<Button x:Name="GetDirection" Content="Direction" DockPanel.Dock="Top" Click="SnapToDefault_Click" Width="258"></Button>
<docking:DockSite x:Name="dockSite">
<docking:SplitContainer x:Name="splitContainer">
<docking:ToolWindowContainer x:Name="toolWindowContainer" docking:DockSite.ControlSize="75,75" >
<docking:ToolWindow x:Name="toolWindow1" Title="Test_Tool_Window_1" CanMaximize="False"/>
<docking:ToolWindow x:Name="toolWindow2" Title="Test_Tool_Window_2" CanMaximize="False"/>
</docking:ToolWindowContainer>
</docking:SplitContainer>
</docking:DockSite>
</DockPanel>
I have created and sent you sample in which you can see if we docked the tool window at specific position and click on Direction button it gives us direction as None.
I have searched for this issue and found out that adding <Workspace> may help, but I cannot add this in my application. This will require lots of changes in application.
Please let me know if there is any way to find out Docked Direction of my toolwindow without adding <workspace>.
Thanks,
Piyush
[Modified 9 years ago]