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. Image for the cookie policy date
close icon

Change foreground color in TabControl

I'm using the TabControl component. I'm creating my Tabs by binding to a list of items. The color of a selected tab is purple. The documentation says, you can change tab color like this:
<navigation:TabControl>
<navigation:TabItem Header="James" SelectedForeground="Red" />
<navigation:TabItem Header="Carl" SelectedForeground="Red" />
<navigation:TabItem Header="Linda" SelectedForeground="Red" />
<navigation:TabItem Header="Niko" SelectedForeground="Red" />
</navigation:TabControl>

The Problem is: I don't declare my tabs in xaml and I don't bind to a list of TabItem objects. So how can I change the SelectedForeground?


1 Reply

YA Yasvanth Syncfusion Team December 12, 2012 06:50 AM UTC

Hi Sebastian,

Thankyou for using Syncfusion controls.

The required behavior can be achieved by using ItemsContainerStyle property . The sample can be downloaded from the following  location for your reference.

Please let us know in case of any queries.

Regards,

Yasvanth


TabControlDemo_2a5be73e.zip

Loader.
Live Chat Icon For mobile
Up arrow icon