Articles in this section
Category / Section

How to change WPF DockingManager side panel tab item's color?

1 min read

In WPF DockingManager, the side panel tab item’s background and foreground color can be changed by using the SideTabItemBackground and SideTabItemForeground properties respectively. The following screenshot demonstrates this.

XAML

<syncfusion:DockingManager x:Name="dockmanager" UseDocumentContainer="True">
            <ContentControl Name="child1" syncfusion:DockingManager.Header="Dock1" syncfusion:DockingManager.State="AutoHidden" syncfusion:DockingManager.SideTabItemBackground="Green" syncfusion:DockingManager.SideTabItemForeground="Red"   ></ContentControl>
            <ContentControl Name="child2" syncfusion:DockingManager.Header="Dock2" syncfusion:DockingManager.State="AutoHidden"></ContentControl>
            <ContentControl Name="child3" syncfusion:DockingManager.Header="Dock3" syncfusion:DockingManager.State="AutoHidden"></ContentControl>
        </syncfusion:DockingManager>

C#

DockingManager.SetSideTabItemBackground(child1, Brushes.Green);
DockingManager.SetSideTabItemForeground(child1, Brushes.Red);

The following screenshot shows the side panel tab item’s background and foreground color in DockingManager.

Figure 1: Output

Conclusion
I hope you enjoyed learning how to change the WPF DockingManager side panel tab item's color.
You can refer to our WPF DockingManager feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our WPF DockingManager example to understand how to create and manipulate data.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

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
Access denied
Access denied