Category / Section
How to hide the TDIHeader when the DockingManager has a single Document?
2 mins read
When the DockingManager has a single document, the TDI Document header can be hidden when the HideTDIHeaderOnSingleChild property is set to true.
XAML
<syncfusion:DockingManager x:Name="dockingmanager" HideTDIHeaderOnSingleChild="True" ContainerMode="TDI" UseDocumentContainer="True"> <ContentControl Name="child1" syncfusion:DockingManager.Header="Dock1" syncfusion:DockingManager.State="Document"></ContentControl> </syncfusion:DockingManager>
C#
dockingmanager.HideTDIHeaderOnSingleChild = true;
The following screenshot shows the output when the HideTDIHeaderOnSingleChild property is set to false.
Figure 1: HideTDIHeaderOnSingleChild property set to false
The following screenshot shows the output when the HideTDIHeaderOnSingleChild property is set to true.
Figure 2: HideTDIHeaderOnSingleChild property set to true