MDI ToolwindowContainer resizes on application resize

Docking/MDI for WPF Forum

Posted 14 years ago by Arthur Damen
Version: 9.1.0506
Avatar
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:

<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:

<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>

Comments (4)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Arthur,

Sorry but right now there isn't a way to fix window sizes. It is something on our TODO list though to add for the future. I'll mark down this post with that TODO item.


Actipro Software Support

Posted 14 years ago by Arthur Damen
Avatar
Is it possible to implement this before march 2010?
We have a deadline then and if this does not work we have a major problem.

I asked for this basic functionality In the spring of 2009.
I cannot imagine that i am the only one who needs this...
Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Arthur,

Unfortunately I'm not sure it would happen before then. we have a number of higher priority TODO items for Docking that need to get done before this, along with updates to our other products as well (such as Ribbon style updates for Office 2010 theme), and starting to get Silverlight products out.

We do offer an option where you can contract us to implement a feature at an hourly rate. This has worked out well for some other customers in the past who have needed a feature that wasn't a high priority for us. When you do that, we make it our top new development priority and get it done very quickly for you. If you are interested in that option and would like to request a quote, please read this page and fill out the form there:
http://www.actiprosoftware.com/Purchase/ConsultingServices.aspx


Actipro Software Support

Posted 14 years ago by Bronwen Zande
Avatar
SizeToContent is an important feature for us aswell
The latest build of this product (v24.1.1) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.