Style.DataTrigger on Border background Style.DataTrigger on Border background xml xml

Style.DataTrigger on Border background


You have explicitely set the background value on the border. This has more priority than the trigger. Remove the Background="#CBE2FF" and take it into the style.

<Border.Style>   <Style TargetType="{x:Type Border}">      <Setter Property="Background" Value="#CBE2FF"/>      ...

This will help.