WPF – TabItem Background color changes when tabitem selected or hover over
Here is example of TabItem ControlTemplate Copy it to your resources and set wherever you need Red color as Background. SAMPLE <Window x:Class=”TestCustomTab.Window1″ xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation” xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml” Title=”Window1″ Height=”300″ Width=”300″> <Window.Resources> <SolidColorBrush x:Key=”RedBrush” Color=”Red”/> <SolidColorBrush x:Key=”SolidBorderBrush” Color=”#888″ /> <SolidColorBrush x:Key=”GreenBrush” Color=”Green” /> <SolidColorBrush x:Key=”DisabledBackgroundBrush” Color=”#EEE” /> <SolidColorBrush x:Key=”DisabledBorderBrush” Color=”#AAA” /> <SolidColorBrush x:Key=”DisabledForegroundBrush” Color=”#888″ /> <Style TargetType=”{x:Type TabItem}”> … Read more