Skip to content

Commit

Permalink
Add hover brush to ListBoxItem
Browse files Browse the repository at this point in the history
  • Loading branch information
Difegue committed Sep 24, 2024
1 parent 4ac9686 commit 151c571
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Wpf.Ui/Controls/ListBox/ListBoxItem.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
<ContentPresenter />
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="Border" Property="Background" Value="{DynamicResource MenuBarItemBackgroundSelected}"/>
</Trigger>

<Trigger Property="IsSelected" Value="True">
<Setter TargetName="Border" Property="Background" Value="{DynamicResource ListBoxItemSelectedBackgroundThemeBrush}" />
<Setter Property="Foreground" Value="{DynamicResource ListBoxItemSelectedForegroundThemeBrush}" />
Expand Down

0 comments on commit 151c571

Please sign in to comment.