|
|
@ -4,14 +4,13 @@ |
|
|
<StackPanel Spacing="20"> |
|
|
<StackPanel Spacing="20"> |
|
|
<Button Content="Click Me!" /> |
|
|
<Button Content="Click Me!" /> |
|
|
<Button Classes="accent" Content="Click Me!" /> |
|
|
<Button Classes="accent" Content="Click Me!" /> |
|
|
<RepeatButton Content="RepeatButton" Width="100" /> |
|
|
</StackPanel> |
|
|
</StackPanel> |
|
|
|
|
|
</Border> |
|
|
</Border> |
|
|
</Design.PreviewWith> |
|
|
</Design.PreviewWith> |
|
|
<Styles.Resources> |
|
|
<Styles.Resources> |
|
|
<Thickness x:Key="ButtonPadding">8,5,8,6</Thickness> |
|
|
<Thickness x:Key="ButtonPadding">8,5,8,6</Thickness> |
|
|
</Styles.Resources> |
|
|
</Styles.Resources> |
|
|
<Style Selector="Button, RepeatButton"> |
|
|
<Style Selector="Button"> |
|
|
<Setter Property="Background" Value="{DynamicResource ButtonBackground}" /> |
|
|
<Setter Property="Background" Value="{DynamicResource ButtonBackground}" /> |
|
|
<!--<Setter Property="BackgroundSizing" Value="OuterBorderEdge" />--> |
|
|
<!--<Setter Property="BackgroundSizing" Value="OuterBorderEdge" />--> |
|
|
<Setter Property="Foreground" Value="{DynamicResource ButtonForeground}" /> |
|
|
<Setter Property="Foreground" Value="{DynamicResource ButtonForeground}" /> |
|
|
@ -42,44 +41,44 @@ |
|
|
</Setter> |
|
|
</Setter> |
|
|
</Style> |
|
|
</Style> |
|
|
|
|
|
|
|
|
<!-- PointerOverState --> |
|
|
<!-- PointerOverState --> |
|
|
<Style Selector="Button:pointerover /template/ ContentPresenter, RepeatButton:pointerover /template/ ContentPresenter"> |
|
|
<Style Selector="Button:pointerover /template/ ContentPresenter"> |
|
|
<Setter Property="Background" Value="{DynamicResource ButtonBackgroundPointerOver}" /> |
|
|
<Setter Property="Background" Value="{DynamicResource ButtonBackgroundPointerOver}" /> |
|
|
<Setter Property="BorderBrush" Value="{DynamicResource ButtonBorderBrushPointerOver}" /> |
|
|
<Setter Property="BorderBrush" Value="{DynamicResource ButtonBorderBrushPointerOver}" /> |
|
|
<Setter Property="TextBlock.Foreground" Value="{DynamicResource ButtonForegroundPointerOver}" /> |
|
|
<Setter Property="TextBlock.Foreground" Value="{DynamicResource ButtonForegroundPointerOver}" /> |
|
|
</Style> |
|
|
</Style> |
|
|
|
|
|
|
|
|
<Style Selector="Button:pressed /template/ ContentPresenter, RepeatButton:pressed /template/ ContentPresenter"> |
|
|
<Style Selector="Button:pressed /template/ ContentPresenter"> |
|
|
<Setter Property="Background" Value="{DynamicResource ButtonBackgroundPressed}" /> |
|
|
<Setter Property="Background" Value="{DynamicResource ButtonBackgroundPressed}" /> |
|
|
<Setter Property="BorderBrush" Value="{DynamicResource ButtonBorderBrushPressed}" /> |
|
|
<Setter Property="BorderBrush" Value="{DynamicResource ButtonBorderBrushPressed}" /> |
|
|
<Setter Property="TextBlock.Foreground" Value="{DynamicResource ButtonForegroundPressed}" /> |
|
|
<Setter Property="TextBlock.Foreground" Value="{DynamicResource ButtonForegroundPressed}" /> |
|
|
</Style> |
|
|
</Style> |
|
|
|
|
|
|
|
|
<Style Selector="Button:disabled, RepeatButton:disabled"> |
|
|
<Style Selector="Button:disabled"> |
|
|
<Setter Property="Background" Value="{DynamicResource ButtonBackgroundDisabled}" /> |
|
|
<Setter Property="Background" Value="{DynamicResource ButtonBackgroundDisabled}" /> |
|
|
<Setter Property="BorderBrush" Value="{DynamicResource ButtonBorderBrushDisabled}" /> |
|
|
<Setter Property="BorderBrush" Value="{DynamicResource ButtonBorderBrushDisabled}" /> |
|
|
<Setter Property="TextBlock.Foreground" Value="{DynamicResource ButtonForegroundDisabled}" /> |
|
|
<Setter Property="TextBlock.Foreground" Value="{DynamicResource ButtonForegroundDisabled}" /> |
|
|
</Style> |
|
|
</Style> |
|
|
|
|
|
|
|
|
<Style Selector="Button.accent, RepeatButton.accent"> |
|
|
<Style Selector="Button.accent"> |
|
|
<Setter Property="Foreground" Value="{DynamicResource AccentButtonForeground}" /> |
|
|
<Setter Property="Foreground" Value="{DynamicResource AccentButtonForeground}" /> |
|
|
<Setter Property="Background" Value="{DynamicResource AccentButtonBackground}" /> |
|
|
<Setter Property="Background" Value="{DynamicResource AccentButtonBackground}" /> |
|
|
<Setter Property="BorderBrush" Value="{DynamicResource AccentButtonBorderBrush}" /> |
|
|
<Setter Property="BorderBrush" Value="{DynamicResource AccentButtonBorderBrush}" /> |
|
|
</Style> |
|
|
</Style> |
|
|
|
|
|
|
|
|
<Style Selector="Button.accent:pointerover /template/ ContentPresenter, RepeatButton.accent:pointerover /template/ ContentPresenter"> |
|
|
<Style Selector="Button.accent:pointerover /template/ ContentPresenter"> |
|
|
<Setter Property="Background" Value="{DynamicResource AccentButtonBackgroundPointerOver}" /> |
|
|
<Setter Property="Background" Value="{DynamicResource AccentButtonBackgroundPointerOver}" /> |
|
|
<Setter Property="BorderBrush" Value="{DynamicResource AccentButtonBorderBrushPointerOver}" /> |
|
|
<Setter Property="BorderBrush" Value="{DynamicResource AccentButtonBorderBrushPointerOver}" /> |
|
|
<Setter Property="TextBlock.Foreground" Value="{DynamicResource AccentButtonForegroundPointerOver}" /> |
|
|
<Setter Property="TextBlock.Foreground" Value="{DynamicResource AccentButtonForegroundPointerOver}" /> |
|
|
</Style> |
|
|
</Style> |
|
|
|
|
|
|
|
|
<Style Selector="Button.accent:pressed /template/ ContentPresenter, RepeatButton.accent:pressed /template/ ContentPresenter"> |
|
|
<Style Selector="Button.accent:pressed /template/ ContentPresenter"> |
|
|
<Setter Property="Background" Value="{DynamicResource AccentButtonBackgroundPressed}" /> |
|
|
<Setter Property="Background" Value="{DynamicResource AccentButtonBackgroundPressed}" /> |
|
|
<Setter Property="BorderBrush" Value="{DynamicResource AccentButtonBorderBrushPressed}" /> |
|
|
<Setter Property="BorderBrush" Value="{DynamicResource AccentButtonBorderBrushPressed}" /> |
|
|
<Setter Property="TextBlock.Foreground" Value="{DynamicResource AccentButtonForegroundPressed}" /> |
|
|
<Setter Property="TextBlock.Foreground" Value="{DynamicResource AccentButtonForegroundPressed}" /> |
|
|
</Style> |
|
|
</Style> |
|
|
|
|
|
|
|
|
<Style Selector="Button.accent:disabled, RepeatButton.accent:disabled"> |
|
|
<Style Selector="Button.accent:disabled"> |
|
|
<Setter Property="Background" Value="{DynamicResource AccentButtonBackgroundDisabled}" /> |
|
|
<Setter Property="Background" Value="{DynamicResource AccentButtonBackgroundDisabled}" /> |
|
|
<Setter Property="BorderBrush" Value="{DynamicResource AccentButtonBorderBrushDisabled}" /> |
|
|
<Setter Property="BorderBrush" Value="{DynamicResource AccentButtonBorderBrushDisabled}" /> |
|
|
<Setter Property="TextBlock.Foreground" Value="{DynamicResource AccentButtonForegroundDisabled}" /> |
|
|
<Setter Property="TextBlock.Foreground" Value="{DynamicResource AccentButtonForegroundDisabled}" /> |
|
|
|