I just want to define a trigger that changes a Label background color when focused, but it doesn't work. Doing the same with button is OK. Are there something wrong ?!?! I also got a same problem with Border and textblock.
Update code xaml:
<Window.Resources>
<SolidColorBrush x:Key="GridLineBrush" Color="#8DAED9" />
<SolidColorBrush x:Key="HeaderWeekDayBackground" Color="#A5BFE1" />
<Style x:Key="borderStyle" TargetType="Control">
<Setter Property="Background" Value="{StaticResource HeaderWeekDayBackground}" />
<Style.Triggers>
<Trigger Property="IsFocused" Value="true">
<Setter Property="Background" Value="Blue" />
</Trigger>
</Style.Triggers>
</Style>
</Window.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Button Style="{StaticResource borderStyle}"
Grid.Row="0" >
</Button>
<Label Focusable="True" Style="{StaticResource borderStyle}"
Grid.Row="1" >
</Label>
</Grid>
</Window>