We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to set the foreground and background for the selected DocumentTabItem using DocumentTabControlStyle in the DockingManager?

You can customize the DocumentTabControl of a DockingManager by using the DocumentTabControlStyle.

Here, an example is illustrated to set the foreground and background for the selected Document TabItem by customizing the DocumentTabControlStyle. You can change the selected document foreground and background in DockingManager by TabItemSelectedBackground and TabItemSelectedForegroud property of DocumentTabControl in the DocumentTabControlStyle .

The following code example illustrates the code for setting the foreground color for the selected TabItem using the TabItemSelectedBackground property in the DocumentTabControlStyle.

XAML

The following screenshot illustrates the output on how the TabItemSelectedBackground property works.

Figure 1: TabItemSelectedBackground Property

The following code example illustrates the code for setting the foreground color for the selected TabItem using the TabItemSelectedForeground property in the DocumentTabControlStyle.

XAML

The following screenshot illustrates the output on how the TabItemSelectedForeground is applied for the selected TabItems.

Figure 2: TabItemSelectedForeground applied for the selected TabItems

Article ID: Published Date: Last Revised Date: Platform: Control: .NET Framework: Product Version:
4098 02/18/2015 02/18/2015 WPF DockingManager 4.5.1 12.4.0.24
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon