Category / Section
How to customize background and foreground of dock window caption in WPF DockingManager?
1 min read
WPF DockingManager provides customization properties to change the header background and foreground of dock window.
Property | Usage |
HeaderBackground | Used to set the header background color of docked windows. |
SelectedHeaderBackground | Used to set the header background color of selected dock window. |
HeaderMouseOverBackground | Used to set the header background color for mouse hover docked window. |
HeaderForeground | Used to set the header foreground color of docked windows. |
HeaderForegroundSelected | Used to set the header foreground color for selected dock window. |
MainWindow.Xaml:
<syncfusion:DockingManager x:Name="dockingmanager" HeaderBackground="Gray" HeaderForeground="Red" HeaderMouseOverBackground="Yellow" SelectedHeaderBackground="Green" HeaderForegroundSelected="Yellow" DockFill="True" > <ContentControl syncfusion:DockingManager.Header="ToolBox" syncfusion:DockingManager.State="Dock" syncfusion:DockingManager.SideInDockedMode= "Left" /> <ContentControl syncfusion:DockingManager.Header="MainWindow" syncfusion:DockingManager.State="Dock"/> <ContentControl syncfusion:DockingManager.Header="Properties" syncfusion:DockingManager.SideInDockedMode="Right" /> </syncfusion:DockingManager>