Category / Section
How to set HeaderForeGround color in DockingManager ?
1 min read
In DockingManager, you can set the header foreground and selected header foreground using HeaderForeground and HeaderForegroundSelected properties respectively.
XAML
<syncfusion:DockingManager x:Name="docking" HeaderForeground="Blue" HeaderForegroundSelected="Red" > <ContentControl Name="Tree" syncfusion:DockingManager.Header="Groups"> <syncfusion:TreeViewAdv> <syncfusion:TreeViewItemAdv Header="Node1"/> <syncfusion:TreeViewItemAdv Header="Node2"/> <syncfusion:TreeViewItemAdv Header="Node3"/> </syncfusion:TreeViewAdv> </ContentControl> <ContentControl Name="Main" syncfusion:DockingManager.Header="Normal" > <syncfusion:TreeViewAdv > <syncfusion:TreeViewItemAdv Header="Item1"/> <syncfusion:TreeViewItemAdv Header="Item2"/> <syncfusion:TreeViewItemAdv Header="Item3"/> </syncfusion:TreeViewAdv> </ContentControl> </syncfusion:DockingManager>
C#
docking.HeaderForeground = new SolidColorBrush(Colors.Blue); docking.HeaderForegroundSelected = new SolidColorBrush(Colors.Red);
The following screenshot shows the HeaderForegroundSelected and HeaderForeground colors in DockingManager.