
I have a ToolWindow that opens or "flys-out" for which I would like to set the width that it opens to. My content is a treeView control for which the right side is being cut off with the default width. I can drag and resize the control at runtime, but have not figured out how to set the width in xaml. My last attempt (shown below) was an attempt set a width on everything, the ToolWindowContainer, the DockSite.ControlSize, the StackPanel etc. I can set these values to anything and none of these Width settings change the initial opening size. How do I set the width the tool window opens with?
WPF Toolkit v3.5.40128.1
WPF Toolkit v3.5.40128.1
<docking:DockSite.AutoHideLeftContainers>
<docking:ToolWindowContainer Width="300">
<docking:ToolWindow x:Name="autoHideLeft" Title="Layer Manager" CanClose="False"
docking:DockSite.ControlSize="575,300" CanAutoHide="True" Width="300">
<StackPanel
Name="stackPanel1"
Background="Gray"
VerticalAlignment="Top"
Width="300">
<ContentPresenter
Content="{Binding Path=LayerManagerViewModel, Mode=OneWay}" Width="300">
</ContentPresenter>
</StackPanel>
</docking:ToolWindow>
</docking:ToolWindowContainer>
</docking:DockSite.AutoHideLeftContainers>