We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

MDI Windows either rezise or dissapear after maximize.

I have a docking manager control being used for roughly most of the bottom of a window (with the ribbon above it in another grid row) when going through the documentation for Docking Manager and using MDI mode, the windows will minimize just fine to the bottom of the docking manager, however once the maximize button is used (a needed feature) the window is either dissapearing, or it is maximizing to a size beyond the dockingmanager size I am not sure which. using the Office White theme it totally dissapears so that I am unable to see any chrome or buttons with which to minimize or refloat the content. any ideas?

<syncfusion:RibbonWindow x:Class="F9WB4.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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:F9WB4"
        xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
        syncfusion:SkinStorage.VisualStyle="Office2013"
        Icon="Resources/Icons/Frontiericon.ico"
        Loaded="Ribbonwindow_Loaded"
        mc:Ignorable="d"
        Title="F9WB: Frontier Weight and Balance V4" Height="600" Width="800">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="105"/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <syncfusion:Ribbon x:Name="_ribbon" VerticalAlignment="Top">
            <syncfusion:RibbonTab Caption="Fleet"  IsChecked="True">
                <syncfusion:RibbonBar Name="NewFleet" Width="90"  Header="New">
                    <syncfusion:RibbonButton SizeForm="Large" LargeIcon="Resources/Icons/Frontiericon.ico" Label="New Aircraft"/>
                    <syncfusion:RibbonButton SizeForm="Large" Label="New Type"/>
                </syncfusion:RibbonBar>
                <syncfusion:RibbonBar Name="Manage" Width="160"  Header="Manage">
                    <syncfusion:RibbonButton HorizontalContentAlignment="Center" SizeForm="Large" Label="Manage Aircraft" VerticalAlignment="Center"/>
                    <syncfusion:RibbonButton HorizontalContentAlignment="Center" SizeForm="Large" Label="Manage Types"/>
                    <syncfusion:RibbonButton HorizontalContentAlignment="Center" SizeForm="Large" Label="Manage Op Configs"/>
                </syncfusion:RibbonBar>
            </syncfusion:RibbonTab>
            <syncfusion:RibbonTab Caption="Weighs"  IsChecked="False">
                <syncfusion:RibbonBar Name="Weighs" Width="90" Header="Weighs">
                    <syncfusion:RibbonButton SizeForm="Large" Label="New Weigh"/>
                    <syncfusion:RibbonButton SizeForm="Large" Label="Edit Weigh"/>
                </syncfusion:RibbonBar>
                <syncfusion:RibbonBar Width="120" Header="Modifications">
                    <syncfusion:RibbonButton SizeForm="Large" Label="Add Modification"/>
                    <syncfusion:RibbonButton SizeForm="Large" Label="Edit Weigh"/>
                </syncfusion:RibbonBar>
            </syncfusion:RibbonTab>
            <syncfusion:RibbonTab Caption="Reports"  IsChecked="False">
                <syncfusion:RibbonBar Width="100" Header="Aircraft">
                    <syncfusion:RibbonButton SizeForm="Large" Label="Weigh Report"></syncfusion:RibbonButton>
                    <syncfusion:RibbonButton SizeForm="Large">
                        <syncfusion:RibbonButton.Label>W &amp; B Summary</syncfusion:RibbonButton.Label>
                    </syncfusion:RibbonButton>
                </syncfusion:RibbonBar>
                <syncfusion:RibbonBar Width="60" Header="Fleet">
                    <syncfusion:RibbonButton SizeForm="Large" Label="Fleet Report"></syncfusion:RibbonButton>
                </syncfusion:RibbonBar>
            </syncfusion:RibbonTab>
            <syncfusion:Ribbon.BackStage>

                <syncfusion:Backstage>
                    <syncfusion:BackStageCommandButton Header="Logout" />
                    <syncfusion:BackStageSeparator/>
                    <syncfusion:BackStageCommandButton Header="Exit" />
                </syncfusion:Backstage>

            </syncfusion:Ribbon.BackStage>
        </syncfusion:Ribbon>
        <syncfusion:DockingManager x:Name="SyncDockingManager" UseNativeFloatWindow="True" MaximizeMode="Default" MaximizeButtonEnabled="True" UseDocumentContainer="True" Grid.Row="1" ContainerMode="MDI">

            <ContentControl x:Name="Content1" syncfusion:DockingManager.Header="Document1" syncfusion:DockingManager.State="Document" />

            <ContentControl syncfusion:DockingManager.Header="Document2" syncfusion:DockingManager.State="Document" />
        </syncfusion:DockingManager>
    </Grid>
</syncfusion:RibbonWindow>


1 Reply

VJ Victory Jessie Selvam D Syncfusion Team October 28, 2016 06:12 AM UTC

Hi Dwayne,

Thank you for using Syncfusion products.

It is an expected behavior of MDI windows to have collapsed title bar in maximized state. We suggest you to create a button and bind its Command to DocumentContainer.RestoreDocumentCommand and bind DockingManager's ActiveDocument as CommandTarget. This button can be used for restoring the maximized document. You can download sample for the same from the following link:

Sample: MDI_MinMaxOptions

Please let us know more details about the requirement if we have misunderstood your query.

Regards,
Jessie

Loader.
Live Chat Icon For mobile
Up arrow icon