<EventTrigger RoutedEvent="Mouse.MouseEnter"/>
<DataTrigger Binding="{Binding Source={x:Static SystemParameters.HighContrast}}" Value="false">
<Setter Property="Foreground" TargetName="PART_TextBox" Value="{Binding Foreground, RelativeSource={RelativeSource TemplatedParent}}"/>
</DataTrigger>
<Trigger Property="IsDropDownOpen" Value="True">
<Setter Property="Fill" TargetName="RecBackground" Value="#FFDDF1FF"/>
</Trigger>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Fill" TargetName="RecBackground" Value="#FFDDF1FF"/>
</Trigger>
转载于:https://www.cnblogs.com/m7777/p/4666858.html