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

Binding TabItemSelectedBackground

Thread ID:





129513 Mar 23,2017 12:39 AM UTC Mar 23,2017 02:36 PM UTC WPF 1
Tags: TabControlExt
nick woods
Asked On March 23, 2017 12:39 AM UTC

 I have been trying to change the Tab Selected Background by the type of ViewModel, but the background does not change when toggling between the ViewModels. Does anybody have any ideas?  

<syncfusion:TabControlExt   x:Name="Tab" TabItemSelectedBackground="{Binding bkTab}"
                                       syncfusion:SkinStorage.VisualStyle="Default"  ItemsSource="{Binding}"  Grid.Row="1" CloseButtonType="Individual"
                                       EnableLabelEdit="False"   >
                    <Style TargetType="{x:Type syncfusion:TabItemExt}">
                        <Setter Property="Header" Value="{Binding DisplayName}"/>

 public VendorViewModel()

                base.DisplayName = "Vendor";
                base.bkTab = (SolidColorBrush)(new BrushConverter().ConvertFrom("#FF7FD13B"));
   public CustomerViewModel()
            base.DisplayName = "Customer";
            base.bkTab = (SolidColorBrush)(new BrushConverter().ConvertFrom("#FF3AA9E8"));

Subashini Mahendran [Syncfusion]
Replied On March 23, 2017 02:36 PM UTC

 Hi NickWoods, 

Thank you for contacting Syncfusion support. 

We have checked your query ”Binding TabItemSelectedBackground” and we have prepared the sample that tries to meet your requirement. In this sample we have toggling between the ViewModels and TabItemSelectedBackground updated based on the ViewModel. Please download the Sample which we tried to reproduce the issue from the below location. 

If the issue still persists, please update us the issue reproducible Sample with replication steps. This would help us to proceed further. 

Subashini M. 


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