|
30 | 30 | <Setter Property="HorizontalContentAlignment" Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource FindAncestor, AncestorLevel=1, AncestorType={x:Type ItemsControl}}}"/>
|
31 | 31 | <Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource FindAncestor, AncestorLevel=1, AncestorType={x:Type ItemsControl}}}"/>
|
32 | 32 | <Setter Property="Background" Value="Transparent"/>
|
33 |
| - <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.MenuTextBrushKey}}"/> |
| 33 | + <Setter Property="Foreground" Value="{StaticResource SystemColors.MenuTextBrushKey}"/> |
34 | 34 | <Setter Property="BorderThickness" Value="1"/>
|
35 | 35 | <Setter Property="Margin" Value="0,1,0,0"/>
|
36 | 36 | <Setter Property="Padding" Value="8,3"/>
|
|
70 | 70 | <Setter Property="Background" TargetName="GlyphPanel" Value="{StaticResource GlyphPanelHighlightBackgroundBrush}"/>
|
71 | 71 | </Trigger>
|
72 | 72 | <Trigger Property="IsEnabled" Value="False">
|
73 |
| - <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/> |
| 73 | + <Setter Property="Foreground" Value="{StaticResource SystemColors.GrayTextBrushKey}"/> |
74 | 74 | </Trigger>
|
75 | 75 | </ControlTemplate.Triggers>
|
76 | 76 | </ControlTemplate>
|
|
88 | 88 | <ContentPresenter x:Name="Icon" Content="{TemplateBinding Icon}" ContentSource="Icon" Margin="4,0,6,0" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="Center"/>
|
89 | 89 | <Path x:Name="GlyphPanel" Data="M0,2.5L2.5,5 7,0.5" FlowDirection="LeftToRight" Margin="4,0,6,0" Stroke="{TemplateBinding Foreground}" StrokeThickness="1.2" Visibility="Collapsed" VerticalAlignment="Center"/>
|
90 | 90 | <ContentPresenter ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" ContentStringFormat="{TemplateBinding HeaderStringFormat}" ContentSource="Header" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
|
91 |
| - <Popup x:Name="PART_Popup" AllowsTransparency="True" Focusable="False" HorizontalOffset="-1" IsOpen="{Binding IsSubmenuOpen, RelativeSource={RelativeSource TemplatedParent}}" PopupAnimation="{DynamicResource {x:Static SystemParameters.MenuPopupAnimationKey}}" Placement="Bottom"> |
| 91 | + <Popup x:Name="PART_Popup" AllowsTransparency="True" Focusable="False" HorizontalOffset="-1" IsOpen="{Binding IsSubmenuOpen, RelativeSource={RelativeSource TemplatedParent}}" PopupAnimation="{StaticResource SystemParameters.MenuPopupAnimationKey}" Placement="Bottom"> |
92 | 92 | <themes:SystemDropShadowChrome x:Name="Shdw" Color="Transparent">
|
93 | 93 | <Border x:Name="SubMenuBorder" BorderBrush="{StaticResource ToolBarMenuBorderBrush}" BorderThickness="1" Background="{StaticResource ToolBarSubMenuBackgroundBrush}">
|
94 | 94 | <Grid>
|
|
137 | 137 | <Setter Property="Color" TargetName="Shdw" Value="{StaticResource DropShadowColor}"/>
|
138 | 138 | </Trigger>
|
139 | 139 | <Trigger Property="IsEnabled" Value="False">
|
140 |
| - <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/> |
| 140 | + <Setter Property="Foreground" Value="{StaticResource SystemColors.GrayTextBrushKey}"/> |
141 | 141 | </Trigger>
|
142 | 142 | <Trigger Property="CanContentScroll" SourceName="SubMenuScrollViewer" Value="False">
|
143 | 143 | <Setter Property="Canvas.Top" TargetName="OpaqueRect" Value="{Binding VerticalOffset, ElementName=SubMenuScrollViewer}"/>
|
|
174 | 174 | <Setter Property="Background" TargetName="Border" Value="{StaticResource HighlightBackgroundBrush}"/>
|
175 | 175 | </Trigger>
|
176 | 176 | <Trigger Property="IsEnabled" Value="False">
|
177 |
| - <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/> |
| 177 | + <Setter Property="Foreground" Value="{StaticResource SystemColors.GrayTextBrushKey}"/> |
178 | 178 | </Trigger>
|
179 | 179 | </ControlTemplate.Triggers>
|
180 | 180 | </ControlTemplate>
|
|
202 | 202 | </Border>
|
203 | 203 | <ContentPresenter ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" Grid.Column="1" ContentStringFormat="{TemplateBinding HeaderStringFormat}" ContentSource="Header" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
|
204 | 204 | <Path Grid.Column="3" DockPanel.Dock="Right" Data="M0,0L4,3.5 0,7z" Fill="{TemplateBinding Foreground}" Margin="4,0,6,0" VerticalAlignment="Center"/>
|
205 |
| - <Popup x:Name="PART_Popup" AllowsTransparency="True" Focusable="False" IsOpen="{Binding IsSubmenuOpen, RelativeSource={RelativeSource TemplatedParent}}" PopupAnimation="{DynamicResource {x:Static SystemParameters.MenuPopupAnimationKey}}" Placement="Right"> |
| 205 | + <Popup x:Name="PART_Popup" AllowsTransparency="True" Focusable="False" IsOpen="{Binding IsSubmenuOpen, RelativeSource={RelativeSource TemplatedParent}}" PopupAnimation="{StaticResource SystemParameters.MenuPopupAnimationKey}" Placement="Right"> |
206 | 206 | <themes:SystemDropShadowChrome x:Name="Shdw" Color="Transparent">
|
207 | 207 | <Border x:Name="SubMenuBorder" BorderBrush="{StaticResource ToolBarMenuBorderBrush}" BorderThickness="1" Background="{StaticResource ToolBarSubMenuBackgroundBrush}" Grid.IsSharedSizeScope="True">
|
208 | 208 | <ScrollViewer x:Name="SubMenuScrollViewer" Style="{DynamicResource {ComponentResourceKey ResourceId=MenuScrollViewer, TypeInTargetAssembly={x:Type FrameworkElement}}}">
|
|
245 | 245 | <Setter Property="Color" TargetName="Shdw" Value="{StaticResource DropShadowColor}"/>
|
246 | 246 | </Trigger>
|
247 | 247 | <Trigger Property="IsEnabled" Value="False">
|
248 |
| - <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/> |
| 248 | + <Setter Property="Foreground" Value="{StaticResource SystemColors.GrayTextBrushKey}"/> |
249 | 249 | </Trigger>
|
250 | 250 | <Trigger Property="CanContentScroll" SourceName="SubMenuScrollViewer" Value="False">
|
251 | 251 | <Setter Property="Canvas.Top" TargetName="OpaqueRect" Value="{Binding VerticalOffset, ElementName=SubMenuScrollViewer}"/>
|
|
289 | 289 | </Setter>
|
290 | 290 | <Style.Triggers>
|
291 | 291 | <DataTrigger Binding="{Binding Source={x:Static SystemParameters.HighContrast}}" Value="true">
|
292 |
| - <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/> |
| 292 | + <Setter Property="Background" Value="{StaticResource SystemColors.ControlBrushKey}"/> |
293 | 293 | </DataTrigger>
|
294 | 294 | </Style.Triggers>
|
295 | 295 | </Style>
|
|
324 | 324 | </Setter>
|
325 | 325 | <Style.Triggers>
|
326 | 326 | <DataTrigger Binding="{Binding Source={x:Static SystemParameters.HighContrast}}" Value="true">
|
327 |
| - <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/> |
| 327 | + <Setter Property="Background" Value="{StaticResource SystemColors.ControlBrushKey}"/> |
328 | 328 | </DataTrigger>
|
329 | 329 | </Style.Triggers>
|
330 | 330 | </Style>
|
|
372 | 372 | <Grid x:Name="Grid" Margin="3,1,1,1" SnapsToDevicePixels="true">
|
373 | 373 | <Grid x:Name="OverflowGrid" HorizontalAlignment="Right">
|
374 | 374 | <ToggleButton x:Name="OverflowButton" ClickMode="Press" FocusVisualStyle="{x:Null}" IsChecked="{Binding IsOverflowOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" IsEnabled="{TemplateBinding HasOverflowItems}" Style="{StaticResource ToolBarHorizontalOverflowButtonStyle}" Visibility="{Binding ElementName=OverflowButton, Path=IsEnabled, Converter={StaticResource BoolToVisibility}}"/>
|
375 |
| - <Popup x:Name="OverflowPopup" AllowsTransparency="true" Focusable="false" IsOpen="{Binding IsOverflowOpen, RelativeSource={RelativeSource TemplatedParent}}" PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}" Placement="Bottom" StaysOpen="false"> |
| 375 | + <Popup x:Name="OverflowPopup" AllowsTransparency="true" Focusable="false" IsOpen="{Binding IsOverflowOpen, RelativeSource={RelativeSource TemplatedParent}}" PopupAnimation="{StaticResource SystemParameters.ComboBoxPopupAnimationKey}" Placement="Bottom" StaysOpen="false"> |
376 | 376 | <themes:SystemDropShadowChrome x:Name="Shdw" Color="Transparent">
|
377 | 377 | <Border x:Name="ToolBarSubMenuBorder" BorderBrush="{StaticResource ToolBarMenuBorderBrush}" BorderThickness="1" Background="{StaticResource ToolBarSubMenuBackgroundBrush}" RenderOptions.ClearTypeHint="Enabled">
|
378 | 378 | <ToolBarOverflowPanel x:Name="PART_ToolBarOverflowPanel" KeyboardNavigation.DirectionalNavigation="Cycle" FocusVisualStyle="{x:Null}" Focusable="true" Margin="2" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" KeyboardNavigation.TabNavigation="Cycle" WrapWidth="200"/>
|
|
421 | 421 | <Setter Property="Background" Value="{StaticResource ToolBarVerticalBackgroundBrush}"/>
|
422 | 422 | </Trigger>
|
423 | 423 | <Trigger Property="IsEnabled" Value="false">
|
424 |
| - <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/> |
| 424 | + <Setter Property="Foreground" Value="{StaticResource SystemColors.GrayTextBrushKey}"/> |
425 | 425 | </Trigger>
|
426 | 426 | </ControlTemplate.Triggers>
|
427 | 427 | </ControlTemplate>
|
428 | 428 | </Setter.Value>
|
429 | 429 | </Setter>
|
430 | 430 | <Style.Triggers>
|
431 | 431 | <DataTrigger Binding="{Binding Source={x:Static SystemParameters.HighContrast}}" Value="true">
|
432 |
| - <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/> |
| 432 | + <Setter Property="Background" Value="{StaticResource SystemColors.ControlBrushKey}"/> |
433 | 433 | </DataTrigger>
|
434 | 434 | </Style.Triggers>
|
435 | 435 | </Style>
|
|
0 commit comments