You can style it like anything else:
<Style TargetType="{x:Type ComboBox}" x:Key="HoverBox"> <Style.Triggers> <Trigger Property="IsMouseOver" Value="True"> <Setter Property="Background" Value="Blue" /> </Trigger> </Style.Triggers> </Style>
using:
<ComboBox Style="{StaticResource HoverBox}" ... />
And at the top of your UserControl / Window you should put a style:
<UserControl...> <UserControl.Resources> <Style TargetType="{x:Type ComboBox}" x:Key="HoverBox"> <Style.Triggers> <Trigger Property="IsMouseOver" Value="True"> <Setter Property="Background" Value="Blue" /> </Trigger> </Style.Triggers> </Style> </UserControl.Resources> [CONTENT HERE] </UserControl>
source share