Category / Section
How can set different type of switch mode in WPF DockingManager?
1 min read
WPF DockingManager allows to navigate between Document windows (Both TDI and MDI) easily using the keyboard keys with combination of CTRL + TAB in different modes by SwitchMode property of the DockingManager.
There are five switch modes.
1. Immediate
2. List
3. QuickTabs
4. VS2005
5. Vista Flip
XAML
<Grid> <syncfusion:DockingManager Name="DockingManager" Width="Auto" SwitchMode="Immediate" UseDocumentContainer="True" > <ContentControl syncfusion:DockingManager.Header="DockingSample" syncfusion:DockingManager.State="Document" > <FlowDocument> <Paragraph>wlecome</Paragraph> </FlowDocument> </ContentControl> <ContentControl syncfusion:DockingManager.Header="DocumentContainer" syncfusion:DockingManager.State="Document" > <FlowDocument> <Paragraph>Welcome To Syncfusion</Paragraph> </FlowDocument> </ContentControl> </syncfusion:DockingManager> </Grid>
C#
// Code Explains How to change the SwitchMode of DockingManger Control namespace TabswitchModes_Document_TDI { public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); DockingManager.SwitchMode = SwitchMode.Immediate; } } }
The following screenshot shows different type SwitchMode in DockinManager control Immediate:
List:
None:
Quick Tabs:
VS2005
VistaFlip: