|
16 | 16 |
|
17 | 17 | <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/> |
18 | 18 |
|
19 | | - <Style x:Key="PrettifyRowModified" TargetType="{x:Type DataGridRow}" BasedOn="{StaticResource PrettifyRow}"> |
| 19 | + <Style x:Key="PrettifyRowModified" TargetType="{x:Type DataGridRow}" BasedOn="{DynamicResource PrettifyRow}"> |
20 | 20 | <EventSetter Event="MouseDoubleClick" Handler="GroupingGridItem_MouseDoubleClick" /> |
21 | 21 | <Setter Property="Height" Value="Auto" /> |
22 | 22 | <Setter Property="MinHeight" Value="26" /> |
|
29 | 29 | <Setter Property="Template"> |
30 | 30 | <Setter.Value> |
31 | 31 | <ControlTemplate> |
32 | | - <Expander Background="{StaticResource BackgroundLightBrush}" Foreground="{StaticResource CaptionDarkBrush}" FontWeight="SemiBold" |
| 32 | + <Expander Background="{DynamicResource BackgroundLightBrush}" Foreground="{DynamicResource CaptionDarkBrush}" FontWeight="SemiBold" |
33 | 33 | IsExpanded="{Binding InitialExpandedState, Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:GroupingGrid}}}"> |
34 | 34 | <Expander.Header> |
35 | 35 | <StackPanel Orientation="Horizontal"> |
|
42 | 42 | VerticalAlignment="Center" |
43 | 43 | Text="{Binding ItemCount, StringFormat=(\{0\})}" |
44 | 44 | TextWrapping="NoWrap" |
45 | | - Visibility="{Binding ShowGroupingItemCount, Converter={StaticResource BooleanToVisibilityConverter}, Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:GroupingGrid}}}"/> |
| 45 | + Visibility="{Binding ShowGroupingItemCount, Converter={DynamicResource BooleanToVisibilityConverter}, Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:GroupingGrid}}}"/> |
46 | 46 | </StackPanel> |
47 | 47 | </Expander.Header> |
48 | 48 | <ItemsPresenter Margin="25,0,0,0" /> |
|
57 | 57 | </ResourceDictionary> |
58 | 58 | </DataGrid.Resources> |
59 | 59 | <DataGrid.GroupStyle> |
60 | | - <GroupStyle ContainerStyle="{StaticResource GroupHeaderStyle}"> |
| 60 | + <GroupStyle ContainerStyle="{DynamicResource GroupHeaderStyle}"> |
61 | 61 | <GroupStyle.Panel> |
62 | 62 | <ItemsPanelTemplate> |
63 | 63 | <DataGridRowsPresenter/> |
|
79 | 79 | <Setter Property="VerticalGridLinesBrush" Value="Transparent" /> |
80 | 80 | <Setter Property="HeadersVisibility" Value="Column" /> |
81 | 81 | <Setter Property="HorizontalScrollBarVisibility" Value="Disabled" /> |
82 | | - <Setter Property="ItemContainerStyle" Value="{StaticResource PrettifyRowModified}" /> |
| 82 | + <Setter Property="ItemContainerStyle" Value="{DynamicResource PrettifyRowModified}" /> |
83 | 83 | <Setter Property="ColumnHeaderHeight" Value="22" /> |
84 | 84 | </Style> |
85 | 85 | </DataGrid.Style> |
|
0 commit comments