Hi,
I have a window that is resizeable. Inside there is a TabbedMdiHost Which contains a usercontrol. The usercontrol itself contains 2 toolwindows. One of them (A) has a fixed size which i set at start. The other should resize when the main window is resized.
When I resize the main application window, the toolwindows are both adjusted related to the % increase/decrease. But I do not want (A) to resize, only the other part should resize.
Main Window:Usercontrol:
I have a window that is resizeable. Inside there is a TabbedMdiHost Which contains a usercontrol. The usercontrol itself contains 2 toolwindows. One of them (A) has a fixed size which i set at start. The other should resize when the main window is resized.
When I resize the main application window, the toolwindows are both adjusted related to the % increase/decrease. But I do not want (A) to resize, only the other part should resize.
Main Window:
<Window x:Class="Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:docking="http://schemas.actiprosoftware.com/winfx/xaml/docking"
xmlns:ribbon="http://schemas.actiprosoftware.com/winfx/xaml/ribbon"
xmlns:shared="http://schemas.actiprosoftware.com/winfx/xaml/shared"
xmlns:loc="clr-namespace:WpfApplication1"
Title="Window1" Height="300" Width="450">
<DockPanel>
<docking:DockSite x:Name="MainDockSite">
<docking:Workspace HorizontalAlignment="Stretch" >
<docking:TabbedMdiHost Name="MDIPresentationsWindow" >
<docking:TabbedMdiContainer Name="MDITabContainer" >
<docking:DocumentWindow Title="Page1">
<loc:UserControl1 x:Name="AA"></loc:UserControl1>
</docking:DocumentWindow>
</docking:TabbedMdiContainer>
</docking:TabbedMdiHost>
</docking:Workspace>
</docking:DockSite>
</DockPanel>
</Window>
<UserControl x:Class="UserControl1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:docking="http://schemas.actiprosoftware.com/winfx/xaml/docking"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" >
<docking:DockSite CanToolWindowsAttach="False" >
<docking:SplitContainer Orientation="Horizontal" >
<docking:ToolWindowContainer Name="B">
<docking:ToolWindow Name="C" HasTitleBar="False"></docking:ToolWindow>
</docking:ToolWindowContainer>
<docking:ToolWindowContainer docking:DockSite.ControlSize="100,100">
<docking:ToolWindow Name="DD" ></docking:ToolWindow>
</docking:ToolWindowContainer>
</docking:SplitContainer>
</docking:DockSite>
</UserControl>