I am using the following code to create various toolwindows. How can I programatically resize the windows and also save the layout for the next time the window is opened?
What I want to end up with is an Outlook like layout.
Thanks
Bill
What I want to end up with is an Outlook like layout.
Thanks
Bill
<docking:DockSite x:Name="dockSite" Grid.Row="0">
<docking:SplitContainer Orientation="Horizontal">
<docking:ToolWindowContainer docking:DockSite.ControlSize="50, 499" >
<docking:ToolWindow x:Name="LeftPanel" Title="" CanAutoHide="False" HasOptions="False">
<TextBox BorderThickness="0" Text="LeftPanel" />
</docking:ToolWindow>
</docking:ToolWindowContainer>
<docking:ToolWindowContainer docking:DockSite.ControlSize="50, 499">
<docking:ToolWindow Title="Fixed" CanAttach="False" CanDrag="False" HasTitleBar="False" x:Name="TreePanel" CanAutoHide="True">
<TextBlock Margin="7" Text="This tool window is 'fixed' and cannot move. Other tool windows may not be attached to it, however they may be docked around it." TextWrapping="Wrap" />
</docking:ToolWindow>
</docking:ToolWindowContainer>
<docking:ToolWindowContainer docking:DockSite.ControlSize="150, 200">
<docking:ToolWindow Title="Fixed" CanAttach="False" CanDrag="False" HasTitleBar="False">
<docking:SplitContainer Orientation="Vertical">
<docking:ToolWindowContainer docking:DockSite.ControlSize="150, 200">
<docking:ToolWindow x:Name="CenterTop" Title="" CanAutoHide="False" HasOptions="False">
<TextBox BorderThickness="0" Text="LeftPanel" />
</docking:ToolWindow>
</docking:ToolWindowContainer>
<docking:ToolWindowContainer docking:DockSite.ControlSize="150, 200">
<docking:ToolWindow x:Name="CenterBottom" Title="" CanAutoHide="False" HasOptions="False">
<TextBox BorderThickness="0" Text="LeftPanel" />
</docking:ToolWindow>
</docking:ToolWindowContainer>
</docking:SplitContainer>
</docking:ToolWindow>
</docking:ToolWindowContainer>
<docking:ToolWindowContainer docking:DockSite.ControlSize="150, 200">
<docking:ToolWindow x:Name="RightPanel" Title="" CanAutoHide="False" HasOptions="False">
<TextBox BorderThickness="0" Text="RightPanel" />
</docking:ToolWindow>
</docking:ToolWindowContainer>
</docking:SplitContainer>
</docking:DockSite>