Articles in this section
Category / Section

How to set the SideTabItem header's background color in DockingManager?

1 min read

In DockingManager, you can set the side TabItem header’s background color by using SideTabItemBackground property.

XAML

<syncfusion:DockingManager>
      <ContentControl x:Name="child1" Content="Docking" syncfusion:DockingManager.State="Dock"
                syncfusion:DockingManager.SideTabItemBackground="Green"
           syncfusion:DockingManager.Header="Dock1">                        
      </ContentControl>
      <ContentControl x:Name="child2" Content="Docking1" syncfusion:DockingManager.State="Dock"
                syncfusion:DockingManager.SideTabItemBackground="Maroon"
           syncfusion:DockingManager.Header="Dock2">     
      </ContentControl>
</syncfusion:DockingManager>

C#

DockingManager.SetSideTabItemBackground(child1, new SolidColorBrush(Colors.Green));
DockingManager.SetSideTabItemBackground(child2, new SolidColorBrush(Colors.Maroon));

The following screenshot illustrates the setting of sidetabitembackground color in DockingManager.

Figure 1: sidetabitembackground color set in DockingManager

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment