How can I get the selected colour in a tabitem?
I want to use it to change the background:
t.Background = new SolidColorBrush(SystemColors.WindowColor);
and have tried all possibilities but didn't get the right one
Try this:
Brush brsTabSelected = default(Brush);
private void WindowViewBase_Loaded(object sender, RoutedEventArgs e)
{
tabItem1.IsSelected = true;
brsTabSelected = tabItem1.Background;
}