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

Height

Hi,

In the following code, I can set the height of the bottom area of the DockingManager as "syncfusion:DockingManager.DesiredHeightInDockedMode="240" ". Its syncfusion:DockingManager.State="Dock".
How do I set the height of the middle area [dmMiddle] of the DockingManager whose state is syncfusion:DockingManager.State="Document"?

Thanks,
Soumyajit Roy


<syncfusion:DockingManager  x:Name="dmMain" 
ContainerMode="MDI" PersistState="false" 
Loaded="dmMain_Loaded" Margin="0" Background="White" ElementBorderThickness="0" TabItemBorderThickness="0" TabItemsBorderThicknessSelected="0"                           
                                        TabItemsCornerRadius="0" UseDocumentContainer="True">

                    <syncfusion:DockingManager.HeaderTemplate>
                        <DataTemplate x:Name="t1">
                            <DockPanel LastChildFill="True" />
                        </DataTemplate>
                    </syncfusion:DockingManager.HeaderTemplate>

                    <!--Left area-->
                    <!--Left area ends-->
                    
                    <!--Middle area: Document. Main grid -->
                    <Grid x:Name="dmMiddle" 
                        syncfusion:DockingManager.State="Document"
syncfusion:DocumentContainer.MDIWindowState="Maximized"
x:Name="gdMasterDatabaseList"
Tag="{Binding}" Margin="0">
                        <ContentControl x:Name="gMainGrid">
                            <DUControls:MainGrid/>
                        </ContentControl>
                    </Grid>

                    <!--Bottom Area-->
                    <Grid x:Name="dmBottom"
                    HorizontalAlignment="Stretch" VerticalAlignment="Stretch" 
                    syncfusion:DockingManager.Header="Database Update Info"
                    syncfusion:DockingManager.NoHeader="True"
    syncfusion:DockingManager.SideInDockedMode="Bottom"
    syncfusion:DockingManager.State="Dock"
    syncfusion:DockingManager.DesiredHeightInDockedMode="240" 
    syncfusion:DockingManager.CanClose="False" 
         syncfusion:DockingManager.IsContextMenuButtonVisible="False"
    syncfusion:DockingManager.CanAutoHide="False">





1 Reply

VJ Victory Jessie Selvam D Syncfusion Team October 12, 2015 12:40 PM UTC

Hi Soumyajit,

Thank you for using Syncfusion products.

The document window will occupy the remaining space after arranging all the other state windows in the container. The height of Document window can be set using MDIBounds attached property. We have prepared a sample using provided code and you can download the same from the following link:

Sample: DockingManager_DocumentBounds

Regards,
Jessie

Loader.
Live Chat Icon For mobile
Up arrow icon