Skip to content

Commit

Permalink
AlternatingRowBackground sample
Browse files Browse the repository at this point in the history
  • Loading branch information
punker76 committed Jun 27, 2015
1 parent b21f760 commit 136cc24
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions samples/MetroDemo/ExampleViews/DataGridExamples.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,13 @@
StringFormat="C"
Minimum="0" />
</DataGrid.Columns>
<DataGrid.Style>
<Style BasedOn="{StaticResource MetroDataGrid}"
TargetType="{x:Type DataGrid}">
<Setter Property="AlternatingRowBackground"
Value="{DynamicResource GrayBrush10}" />
</Style>
</DataGrid.Style>
<DataGrid.RowStyle>
<Style BasedOn="{StaticResource MetroDataGridRow}"
TargetType="{x:Type DataGridRow}">
Expand All @@ -172,10 +179,6 @@
Value="Red" />
</DataTrigger>
</Style.Triggers>
<Setter Property="Control.Foreground"
Value="{DynamicResource BlackBrush}" />
<Setter Property="FrameworkElement.Margin"
Value="0" />
</Style>
</DataGrid.RowStyle>
</DataGrid>
Expand Down

0 comments on commit 136cc24

Please sign in to comment.