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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Change foreground color in TabControl

Thread ID:





106074 Dec 7,2012 04:38 PM UTC Dec 12,2012 06:50 AM UTC WinRT 1
Tags: SfTabControl
Asked On December 7, 2012 04:38 PM UTC

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:TabItem Header="James" SelectedForeground="Red" />
<navigation:TabItem Header="Carl" SelectedForeground="Red" />
<navigation:TabItem Header="Linda" SelectedForeground="Red" />
<navigation:TabItem Header="Niko" SelectedForeground="Red" />

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?

Yasvanth [Syncfusion]
Replied On 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.





This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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