|
10 | 10 | <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
|
11 | 11 | <ContentPresenter Content="{Binding}"/>
|
12 | 12 | <Border Margin="6,0,0,0">
|
13 |
| - <Path VerticalAlignment="Center" Width="6" Fill="{DynamicResource ToolBarGripper}" Stretch="Uniform" HorizontalAlignment="Right" |
| 13 | + <Path VerticalAlignment="Center" Width="6" Fill="{DynamicResource ToolBarGripperBrush}" Stretch="Uniform" HorizontalAlignment="Right" |
14 | 14 | Data="F1 M 301.14,-189.041L 311.57,-189.041L 306.355,-182.942L 301.14,-189.041 Z" />
|
15 | 15 | </Border>
|
16 | 16 | </StackPanel>
|
|
89 | 89 | <ContentPresenter ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" ContentStringFormat="{TemplateBinding HeaderStringFormat}" ContentSource="Header" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
|
90 | 90 | <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 | 91 | <themes:SystemDropShadowChrome x:Name="Shdw" Color="Transparent">
|
92 |
| - <Border x:Name="SubMenuBorder" BorderBrush="{StaticResource ToolBarMenuBorder}" BorderThickness="1" Background="{StaticResource ToolBarSubMenuBackground}"> |
| 92 | + <Border x:Name="SubMenuBorder" BorderBrush="{StaticResource ToolBarMenuBorderBrush}" BorderThickness="1" Background="{StaticResource ToolBarSubMenuBackgroundBrush}"> |
93 | 93 | <Grid>
|
94 |
| - <Rectangle Fill="{StaticResource ToolBarSubMenuBackground}" HorizontalAlignment="Left" Height="1" Margin="0,-1,0,0" VerticalAlignment="Top" Width="{Binding ActualWidth, ElementName=Header}"/> |
| 94 | + <Rectangle Fill="{StaticResource ToolBarSubMenuBackgroundBrush}" HorizontalAlignment="Left" Height="1" Margin="0,-1,0,0" VerticalAlignment="Top" Width="{Binding ActualWidth, ElementName=Header}"/> |
95 | 95 | <ScrollViewer x:Name="SubMenuScrollViewer" Style="{DynamicResource {ComponentResourceKey ResourceId=MenuScrollViewer, TypeInTargetAssembly={x:Type FrameworkElement}}}">
|
96 | 96 | <Grid RenderOptions.ClearTypeHint="Enabled" Grid.IsSharedSizeScope="True">
|
97 | 97 | <Grid.ColumnDefinitions>
|
|
101 | 101 | <Canvas HorizontalAlignment="Left" Height="0" VerticalAlignment="Top" Width="0">
|
102 | 102 | <Rectangle x:Name="OpaqueRect" Fill="{Binding Background, ElementName=SubMenuBorder}" Height="{Binding ActualHeight, ElementName=SubMenuBorder}" Width="{Binding ActualWidth, ElementName=SubMenuBorder}"/>
|
103 | 103 | </Canvas>
|
104 |
| - <Rectangle Fill="{StaticResource ToolBarSubMenuBackground}" Margin="0,1"/> |
| 104 | + <Rectangle Fill="{StaticResource ToolBarSubMenuBackgroundBrush}" Margin="0,1"/> |
105 | 105 | <ItemsPresenter x:Name="ItemsPresenter" Grid.ColumnSpan="2" KeyboardNavigation.DirectionalNavigation="Cycle" Margin="0,0,0,1" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" KeyboardNavigation.TabNavigation="Cycle"/>
|
106 | 106 | </Grid>
|
107 | 107 | </ScrollViewer>
|
|
127 | 127 | <Setter Property="Background" TargetName="Border" Value="{StaticResource HighlightBackgroundBrush}"/>
|
128 | 128 | </Trigger>
|
129 | 129 | <Trigger Property="IsSubmenuOpen" Value="True">
|
130 |
| - <Setter Property="BorderBrush" TargetName="Border" Value="{StaticResource ToolBarMenuBorder}"/> |
131 |
| - <Setter Property="Background" TargetName="Border" Value="{StaticResource ToolBarSubMenuBackground}"/> |
| 130 | + <Setter Property="BorderBrush" TargetName="Border" Value="{StaticResource ToolBarMenuBorderBrush}"/> |
| 131 | + <Setter Property="Background" TargetName="Border" Value="{StaticResource ToolBarSubMenuBackgroundBrush}"/> |
132 | 132 | </Trigger>
|
133 | 133 | <Trigger Property="HasDropShadow" SourceName="PART_Popup" Value="True">
|
134 | 134 | <Setter Property="Margin" TargetName="Shdw" Value="0,0,5,5"/>
|
|
203 | 203 | <Path Grid.Column="3" DockPanel.Dock="Right" Data="M0,0L4,3.5 0,7z" Fill="{TemplateBinding Foreground}" Margin="4,0,6,0" VerticalAlignment="Center"/>
|
204 | 204 | <Popup x:Name="PART_Popup" AllowsTransparency="True" Focusable="False" IsOpen="{Binding IsSubmenuOpen, RelativeSource={RelativeSource TemplatedParent}}" PopupAnimation="{DynamicResource {x:Static SystemParameters.MenuPopupAnimationKey}}" Placement="Right">
|
205 | 205 | <themes:SystemDropShadowChrome x:Name="Shdw" Color="Transparent">
|
206 |
| - <Border x:Name="SubMenuBorder" BorderBrush="{StaticResource ToolBarMenuBorder}" BorderThickness="1" Background="{StaticResource ToolBarSubMenuBackground}" Grid.IsSharedSizeScope="True"> |
| 206 | + <Border x:Name="SubMenuBorder" BorderBrush="{StaticResource ToolBarMenuBorderBrush}" BorderThickness="1" Background="{StaticResource ToolBarSubMenuBackgroundBrush}" Grid.IsSharedSizeScope="True"> |
207 | 207 | <ScrollViewer x:Name="SubMenuScrollViewer" Style="{DynamicResource {ComponentResourceKey ResourceId=MenuScrollViewer, TypeInTargetAssembly={x:Type FrameworkElement}}}">
|
208 | 208 | <Grid RenderOptions.ClearTypeHint="Enabled">
|
209 | 209 | <Grid.ColumnDefinitions>
|
|
213 | 213 | <Canvas HorizontalAlignment="Left" Height="0" VerticalAlignment="Top" Width="0">
|
214 | 214 | <Rectangle x:Name="OpaqueRect" Fill="{Binding Background, ElementName=SubMenuBorder}" Height="{Binding ActualHeight, ElementName=SubMenuBorder}" Width="{Binding ActualWidth, ElementName=SubMenuBorder}"/>
|
215 | 215 | </Canvas>
|
216 |
| - <Rectangle Fill="{StaticResource ToolBarSubMenuBackground}" Margin="0,1"/> |
| 216 | + <Rectangle Fill="{StaticResource ToolBarSubMenuBackgroundBrush}" Margin="0,1"/> |
217 | 217 | <ItemsPresenter x:Name="ItemsPresenter" Grid.ColumnSpan="2" KeyboardNavigation.DirectionalNavigation="Cycle" Margin="0,0,0,1" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" KeyboardNavigation.TabNavigation="Cycle"/>
|
218 | 218 | </Grid>
|
219 | 219 | </ScrollViewer>
|
|
258 | 258 | </Style.Triggers>
|
259 | 259 | </Style>
|
260 | 260 | <Style x:Key="ToolBarVerticalOverflowButtonStyle" TargetType="{x:Type ToggleButton}">
|
261 |
| - <Setter Property="Background" Value="{StaticResource ToolBarToggleButtonVerticalBackground}"/> |
| 261 | + <Setter Property="Background" Value="{StaticResource ToolBarToggleButtonVerticalBackgroundBrush}"/> |
262 | 262 | <Setter Property="MinHeight" Value="0"/>
|
263 | 263 | <Setter Property="MinWidth" Value="0"/>
|
264 | 264 | <Setter Property="Template">
|
|
274 | 274 | </Border>
|
275 | 275 | <ControlTemplate.Triggers>
|
276 | 276 | <Trigger Property="IsMouseOver" Value="true">
|
277 |
| - <Setter Property="Background" TargetName="Bd" Value="{StaticResource ToolBarButtonHover}"/> |
| 277 | + <Setter Property="Background" TargetName="Bd" Value="{StaticResource ToolBarButtonHoverBrush}"/> |
278 | 278 | </Trigger>
|
279 | 279 | <Trigger Property="IsKeyboardFocused" Value="true">
|
280 |
| - <Setter Property="Background" TargetName="Bd" Value="{StaticResource ToolBarButtonHover}"/> |
| 280 | + <Setter Property="Background" TargetName="Bd" Value="{StaticResource ToolBarButtonHoverBrush}"/> |
281 | 281 | </Trigger>
|
282 | 282 | <Trigger Property="IsEnabled" Value="false">
|
283 |
| - <Setter Property="Foreground" Value="{StaticResource ToolBarGripper}"/> |
| 283 | + <Setter Property="Foreground" Value="{StaticResource ToolBarGripperBrush}"/> |
284 | 284 | </Trigger>
|
285 | 285 | </ControlTemplate.Triggers>
|
286 | 286 | </ControlTemplate>
|
|
293 | 293 | </Style.Triggers>
|
294 | 294 | </Style>
|
295 | 295 | <Style x:Key="ToolBarHorizontalOverflowButtonStyle" TargetType="{x:Type ToggleButton}">
|
296 |
| - <Setter Property="Background" Value="{StaticResource ToolBarToggleButtonHorizontalBackground}"/> |
| 296 | + <Setter Property="Background" Value="{StaticResource ToolBarToggleButtonHorizontalBackgroundBrush}"/> |
297 | 297 | <Setter Property="MinHeight" Value="0"/>
|
298 | 298 | <Setter Property="MinWidth" Value="0"/>
|
299 | 299 | <Setter Property="Template">
|
|
309 | 309 | </Border>
|
310 | 310 | <ControlTemplate.Triggers>
|
311 | 311 | <Trigger Property="IsMouseOver" Value="true">
|
312 |
| - <Setter Property="Background" TargetName="Bd" Value="{StaticResource ToolBarButtonHover}"/> |
| 312 | + <Setter Property="Background" TargetName="Bd" Value="{StaticResource ToolBarButtonHoverBrush}"/> |
313 | 313 | </Trigger>
|
314 | 314 | <Trigger Property="IsKeyboardFocused" Value="true">
|
315 |
| - <Setter Property="Background" TargetName="Bd" Value="{StaticResource ToolBarButtonHover}"/> |
| 315 | + <Setter Property="Background" TargetName="Bd" Value="{StaticResource ToolBarButtonHoverBrush}"/> |
316 | 316 | </Trigger>
|
317 | 317 | <Trigger Property="IsEnabled" Value="false">
|
318 |
| - <Setter Property="Foreground" Value="{StaticResource ToolBarGripper}"/> |
| 318 | + <Setter Property="Foreground" Value="{StaticResource ToolBarGripperBrush}"/> |
319 | 319 | </Trigger>
|
320 | 320 | </ControlTemplate.Triggers>
|
321 | 321 | </ControlTemplate>
|
|
338 | 338 | <DrawingBrush.Drawing>
|
339 | 339 | <DrawingGroup>
|
340 | 340 | <GeometryDrawing Brush="{StaticResource WhiteBrush}" Geometry="M 1 1 L 1 3 L 3 3 L 3 1 z"/>
|
341 |
| - <GeometryDrawing Brush="{StaticResource ToolBarGripper}" Geometry="M 0 0 L 0 2 L 2 2 L 2 0 z"/> |
| 341 | + <GeometryDrawing Brush="{StaticResource ToolBarGripperBrush}" Geometry="M 0 0 L 0 2 L 2 2 L 2 0 z"/> |
342 | 342 | </DrawingGroup>
|
343 | 343 | </DrawingBrush.Drawing>
|
344 | 344 | </DrawingBrush>
|
|
364 | 364 | </Style.Triggers>
|
365 | 365 | </Style>
|
366 | 366 | <Style x:Key="ToolBarWithOverflowOnlyShowingWhenNeededStyle" TargetType="{x:Type ToolBar}">
|
367 |
| - <Setter Property="Background" Value="{StaticResource ToolBarHorizontalBackground}"/> |
| 367 | + <Setter Property="Background" Value="{StaticResource ToolBarHorizontalBackgroundBrush}"/> |
368 | 368 | <Setter Property="Template">
|
369 | 369 | <Setter.Value>
|
370 | 370 | <ControlTemplate TargetType="{x:Type ToolBar}">
|
|
373 | 373 | <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}}"/>
|
374 | 374 | <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 | 375 | <themes:SystemDropShadowChrome x:Name="Shdw" Color="Transparent">
|
376 |
| - <Border x:Name="ToolBarSubMenuBorder" BorderBrush="{StaticResource ToolBarMenuBorder}" BorderThickness="1" Background="{StaticResource ToolBarSubMenuBackground}" RenderOptions.ClearTypeHint="Enabled"> |
| 376 | + <Border x:Name="ToolBarSubMenuBorder" BorderBrush="{StaticResource ToolBarMenuBorderBrush}" BorderThickness="1" Background="{StaticResource ToolBarSubMenuBackgroundBrush}" RenderOptions.ClearTypeHint="Enabled"> |
377 | 377 | <ToolBarOverflowPanel x:Name="PART_ToolBarOverflowPanel" KeyboardNavigation.DirectionalNavigation="Cycle" FocusVisualStyle="{x:Null}" Focusable="true" Margin="2" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" KeyboardNavigation.TabNavigation="Cycle" WrapWidth="200"/>
|
378 | 378 | </Border>
|
379 | 379 | </themes:SystemDropShadowChrome>
|
|
417 | 417 | <Setter Property="VerticalAlignment" TargetName="OverflowGrid" Value="Bottom"/>
|
418 | 418 | <Setter Property="Placement" TargetName="OverflowPopup" Value="Right"/>
|
419 | 419 | <Setter Property="Margin" TargetName="MainPanelBorder" Value="0,0,0,11"/>
|
420 |
| - <Setter Property="Background" Value="{StaticResource ToolBarVerticalBackground}"/> |
| 420 | + <Setter Property="Background" Value="{StaticResource ToolBarVerticalBackgroundBrush}"/> |
421 | 421 | </Trigger>
|
422 | 422 | <Trigger Property="IsEnabled" Value="false">
|
423 | 423 | <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
|
|
0 commit comments