Add alternating row styles to DataGrid in ImageVerify.xaml for improved readability

This commit is contained in:
2025-12-16 11:26:26 +00:00
parent ae1c67a72a
commit ef92ae8735

View File

@@ -50,6 +50,21 @@
<Design.DataContext>
<windows:ImageVerifyViewModel />
</Design.DataContext>
<Window.Styles>
<Style Selector="DataGridRow:nth-child(2n)">
<Setter Property="Background">
<SolidColorBrush Color="#15FFFFFF" />
</Setter>
</Style>
<Style Selector="DataGridRow:nth-child(2n):pointerover">
<Setter Property="Background"
Value="{DynamicResource SystemControlHighlightListLowBrush}" />
</Style>
<Style Selector="DataGridRow:nth-child(2n):selected">
<Setter Property="Background"
Value="{DynamicResource SystemControlHighlightAccentBrush}" />
</Style>
</Window.Styles>
<Grid RowDefinitions="Auto,*,Auto"
RowSpacing="8"
Margin="12">