Category / Section
How to set TDIFullScreen in Document Container
1 min read
TDI Document display can be changed by TDIFullScreenMode property of Document Container. TDIFullScreenModes are ControlMode, WindowMode, None.
The same has been explained in the following code snippet:
XAML:
//Code Explains How set TDIFullscreen 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="MDILayout.MainWindow" Title="MainWindow" Height="350" Width="525"> <Grid> <syncfusion:DocumentContainer Name="Document" Mode="TDI" TDIFullScreenMode="None" syncfusion:DocumentContainer.Header="DocumentContainer"> <FlowDocumentScrollViewer syncfusion:DocumentContainer.Header="Sample"> <FlowDocument> <Paragraph> TDIFullScreenMode is the property used to define the full-screen mode for TDI items </Paragraph> </FlowDocument> </FlowDocumentScrollViewer> <FlowDocumentScrollViewer syncfusion:DockingManager.Header="Feature"> <FlowDocument> <Paragraph> Welcome to Syncfusion </Paragraph> </FlowDocument> </FlowDocumentScrollViewer> </syncfusion:DocumentContainer> </Grid> </Window>
C#:
//Code explains how to set TDIFullscreen in Document Container namespace MDILayout { public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); Document.TDIFullScreenMode = FullScreenMode.ControlMode; } } }
Output:
ControlMode:
WindowMode:
None: