Hello,
I had made the following window.
- SizeToContent="WidthAndHeight"
- Contains DockSite.AutoHideBottomContainers
I had encountered the following issues.
- When click "Tool1", tool window will be poped up, but main window's width become screen width.
- After pinned the tool window, main window's width become original width.
- Make tool window pinned. When switch Tool1 <--> Tool2, main window' height is changed.
- When make Tool1's height smaller, main window's height become smaller.
Would you please check it?
Regarding to 1st issue, it was solved by specify `DockSite.UseHostedPopups="False"`.
However, I don't want to use this because initialize process of internal control was not executed properly.
<Window
x:Class="WpfApp36.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:docking="http://schemas.actiprosoftware.com/winfx/xaml/docking"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="MainWindow"
ResizeMode="NoResize"
SizeToContent="WidthAndHeight"
mc:Ignorable="d">
<Grid>
<docking:DockSite>
<docking:DockSite.AutoHideBottomContainers>
<docking:ToolWindowContainer>
<docking:ToolWindow Title="Tool1">
<StackPanel>
<Label Content="Tool1" />
<Button Height="50" Content="Button1" />
</StackPanel>
</docking:ToolWindow>
<docking:ToolWindow Title="Tool2">
<StackPanel>
<Label Content="Tool2" />
<Button Content="Button2" />
</StackPanel>
</docking:ToolWindow>
</docking:ToolWindowContainer>
</docking:DockSite.AutoHideBottomContainers>
<docking:SplitContainer>
<docking:Workspace>
<docking:ToolWindow
Title="Fixed"
CanAttach="False"
CanDragTab="False"
HasTitleBar="False">
<StackPanel Margin="8" Orientation="Vertical">
<Label Content="Main Area" />
<StackPanel Margin="0,16,0,0" Orientation="Horizontal">
<Label Content="Name: " />
<TextBox Width="300" Margin="0,8,0,0" />
</StackPanel>
<StackPanel Margin="0,16,0,0" Orientation="Horizontal">
<Label Content="Age: " />
<TextBox Width="300" Margin="0,8,0,0" />
</StackPanel>
<StackPanel Margin="0,16,0,0" Orientation="Horizontal">
<Label Content="Address: " />
<TextBox Width="300" Margin="0,8,0,0" />
</StackPanel>
<Button
Width="100"
Margin="0,16,0,0"
HorizontalAlignment="Right"
Content="Apply" />
</StackPanel>
</docking:ToolWindow>
</docking:Workspace>
</docking:SplitContainer>
</docking:DockSite>
</Grid>
</Window>
Best regards,