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?
MainWindow.xml
<syncfusion:TabControlExt x:Name="Tab" TabItemSelectedBackground="{Binding bkTab}"
syncfusion:SkinStorage.VisualStyle="Default" ItemsSource="{Binding}" Grid.Row="1" CloseButtonType="Individual"
EnableLabelEdit="False" >
<syncfusion:TabControlExt.Style>
<Style TargetType="{x:Type syncfusion:TabItemExt}">
<Setter Property="Header" Value="{Binding DisplayName}"/>
</Style>
</syncfusion:TabControlExt.Style>
</syncfusion:TabControlExt>
VendorViewModel.cs;
public VendorViewModel()
{
base.DisplayName = "Vendor";
base.bkTab = (SolidColorBrush)(new BrushConverter().ConvertFrom("#FF7FD13B"));
}
CustomerViewModel.cs:
public CustomerViewModel()
{
base.DisplayName = "Customer";
base.bkTab = (SolidColorBrush)(new BrushConverter().ConvertFrom("#FF3AA9E8"));
}