Articles in this section

How to restrict MDIResize Window in DocumentContainer

MDI Window resize can be restricted in Document Container by AllowMDIResizeproperty as false.

The same has been explained the following code snippet:

XAML:

// Code Explains how to restrict MDI Window resize in Document Container
<Window
 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:syncfusion="http://schemas.syncfusion.com/wpf"   x:Class="DocumentContainer_CanMDIMaximize_.MainWindow"
Title="MainWindow" Height="350" Width="525">
<Grid>
<syncfusion:DocumentContainer Name="Document" Mode="MDI"    syncfusion:DocumentContainer.AllowMDIResize="False"  >
<ContentControl syncfusion:DocumentContainer.Header="Resize"  syncfusion:DocumentContainer.MDIBounds="0,0,250,250">
<FlowDocument>
<Paragraph>A DocumentContainer is a control that is used for holding the documents, controls and panels inside it.
</Paragraph>
 </FlowDocument>
</ContentControl>
 <ContentControl syncfusion:DocumentContainer.Header="Control" syncfusion:DocumentContainer.MDIBounds="0,0,300,300">
<FlowDocument>
 <Paragraph>
 Document Container Test
</Paragraph>
</FlowDocument>
</ContentControl>
</syncfusion:DocumentContainer>
</Grid>
</Window>
 

 

C#:

//Code Explains how to restrict MDI Window resize in Document Container
namespace DocumentContainer_CanMDIMaximize_
{
public partial class MainWindow : Window
{
public MainWindow()
 {
InitializeComponent();
DocumentContainer Doc = new DocumentContainer();
Doc.IsAllowMDIResize = false;
}
}
}
 

 

 

 

 

 

 

 

 

 

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied