2020-05-11 21:36:55 +02:00
|
|
|
<ResourceDictionary
|
2022-11-23 19:57:09 +01:00
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
|
|
|
|
|
|
|
|
<SolidColorBrush
|
|
|
|
|
x:Key="SubtleButtonBackground"
|
|
|
|
|
Color="{ThemeResource SubtleFillColorTransparent}" />
|
|
|
|
|
<SolidColorBrush
|
|
|
|
|
x:Key="SubtleButtonBackgroundPointerOver"
|
|
|
|
|
Color="{ThemeResource SubtleFillColorSecondary}" />
|
|
|
|
|
<SolidColorBrush
|
|
|
|
|
x:Key="SubtleButtonBackgroundPressed"
|
|
|
|
|
Color="{ThemeResource SubtleFillColorTertiary}" />
|
|
|
|
|
<SolidColorBrush
|
|
|
|
|
x:Key="SubtleButtonBackgroundDisabled"
|
|
|
|
|
Color="{ThemeResource SubtleFillColorTransparent}" />
|
|
|
|
|
<SolidColorBrush
|
|
|
|
|
x:Key="SubtleButtonForeground"
|
|
|
|
|
Color="{ThemeResource TextFillColorPrimary}" />
|
|
|
|
|
<SolidColorBrush
|
|
|
|
|
x:Key="SubtleButtonForegroundPointerOver"
|
|
|
|
|
Color="{ThemeResource TextFillColorPrimary}" />
|
|
|
|
|
<SolidColorBrush
|
|
|
|
|
x:Key="SubtleButtonForegroundPressed"
|
|
|
|
|
Color="{ThemeResource TextFillColorSecondary}" />
|
|
|
|
|
<SolidColorBrush
|
|
|
|
|
x:Key="SubtleButtonForegroundDisabled"
|
|
|
|
|
Color="{ThemeResource TextFillColorDisabled}" />
|
|
|
|
|
|
|
|
|
|
<Style
|
|
|
|
|
x:Key="SubtleButtonStyle"
|
|
|
|
|
TargetType="Button">
|
|
|
|
|
<Setter Property="Background" Value="{ThemeResource SubtleButtonBackground}" />
|
|
|
|
|
<Setter Property="BackgroundSizing" Value="InnerBorderEdge" />
|
|
|
|
|
<Setter Property="Foreground" Value="{ThemeResource SubtleButtonForeground}" />
|
|
|
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
|
|
|
<Setter Property="Width" Value="36" />
|
|
|
|
|
<Setter Property="Padding" Value="0" />
|
|
|
|
|
<Setter Property="Height" Value="36" />
|
|
|
|
|
<Setter Property="Padding" Value="{StaticResource ButtonPadding}" />
|
|
|
|
|
<Setter Property="HorizontalAlignment" Value="Left" />
|
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
|
|
|
<Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}" />
|
|
|
|
|
<Setter Property="FontWeight" Value="Normal" />
|
|
|
|
|
<Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}" />
|
2021-09-19 16:22:39 +02:00
|
|
|
<Setter Property="UseSystemFocusVisuals" Value="{StaticResource UseSystemFocusVisuals}" />
|
2022-11-23 19:57:09 +01:00
|
|
|
<Setter Property="FocusVisualMargin" Value="-3" />
|
|
|
|
|
<Setter Property="CornerRadius" Value="{ThemeResource ControlCornerRadius}" />
|
2021-09-19 16:22:39 +02:00
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
2022-11-23 19:57:09 +01:00
|
|
|
<ControlTemplate TargetType="Button">
|
|
|
|
|
<ContentPresenter
|
|
|
|
|
x:Name="ContentPresenter"
|
|
|
|
|
Padding="{TemplateBinding Padding}"
|
|
|
|
|
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
|
|
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
|
|
|
AnimatedIcon.State="Normal"
|
|
|
|
|
AutomationProperties.AccessibilityView="Raw"
|
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
|
BackgroundSizing="{TemplateBinding BackgroundSizing}"
|
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
|
|
Content="{TemplateBinding Content}"
|
|
|
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
|
|
|
ContentTransitions="{TemplateBinding ContentTransitions}"
|
|
|
|
|
CornerRadius="{TemplateBinding CornerRadius}">
|
|
|
|
|
<ContentPresenter.BackgroundTransition>
|
|
|
|
|
<BrushTransition Duration="0:0:0.083" />
|
|
|
|
|
</ContentPresenter.BackgroundTransition>
|
2021-09-19 16:22:39 +02:00
|
|
|
|
|
|
|
|
<VisualStateManager.VisualStateGroups>
|
|
|
|
|
<VisualStateGroup x:Name="CommonStates">
|
|
|
|
|
<VisualState x:Name="Normal" />
|
|
|
|
|
<VisualState x:Name="PointerOver">
|
|
|
|
|
<Storyboard>
|
2022-11-23 19:57:09 +01:00
|
|
|
<ObjectAnimationUsingKeyFrames
|
|
|
|
|
Storyboard.TargetName="ContentPresenter"
|
|
|
|
|
Storyboard.TargetProperty="Background">
|
|
|
|
|
<DiscreteObjectKeyFrame
|
|
|
|
|
KeyTime="0"
|
|
|
|
|
Value="{ThemeResource SubtleButtonBackgroundPointerOver}" />
|
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
|
<ObjectAnimationUsingKeyFrames
|
|
|
|
|
Storyboard.TargetName="ContentPresenter"
|
|
|
|
|
Storyboard.TargetProperty="Foreground">
|
|
|
|
|
<DiscreteObjectKeyFrame
|
|
|
|
|
KeyTime="0"
|
|
|
|
|
Value="{ThemeResource SubtleButtonForegroundPointerOver}" />
|
2021-09-19 16:22:39 +02:00
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
|
</Storyboard>
|
2022-11-23 19:57:09 +01:00
|
|
|
<VisualState.Setters>
|
|
|
|
|
<Setter Target="ContentPresenter.(AnimatedIcon.State)" Value="PointerOver" />
|
|
|
|
|
</VisualState.Setters>
|
2021-09-19 16:22:39 +02:00
|
|
|
</VisualState>
|
|
|
|
|
|
|
|
|
|
<VisualState x:Name="Pressed">
|
|
|
|
|
<Storyboard>
|
2022-11-23 19:57:09 +01:00
|
|
|
<ObjectAnimationUsingKeyFrames
|
|
|
|
|
Storyboard.TargetName="ContentPresenter"
|
|
|
|
|
Storyboard.TargetProperty="Background">
|
|
|
|
|
<DiscreteObjectKeyFrame
|
|
|
|
|
KeyTime="0"
|
|
|
|
|
Value="{ThemeResource SubtleButtonBackgroundPressed}" />
|
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
|
<ObjectAnimationUsingKeyFrames
|
|
|
|
|
Storyboard.TargetName="ContentPresenter"
|
|
|
|
|
Storyboard.TargetProperty="Foreground">
|
|
|
|
|
<DiscreteObjectKeyFrame
|
|
|
|
|
KeyTime="0"
|
|
|
|
|
Value="{ThemeResource SubtleButtonForegroundPressed}" />
|
2021-09-19 16:22:39 +02:00
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
|
</Storyboard>
|
2022-11-23 19:57:09 +01:00
|
|
|
<VisualState.Setters>
|
|
|
|
|
<Setter Target="ContentPresenter.(AnimatedIcon.State)" Value="Pressed" />
|
|
|
|
|
</VisualState.Setters>
|
2021-09-19 16:22:39 +02:00
|
|
|
</VisualState>
|
|
|
|
|
|
|
|
|
|
<VisualState x:Name="Disabled">
|
|
|
|
|
<Storyboard>
|
2022-11-23 19:57:09 +01:00
|
|
|
<ObjectAnimationUsingKeyFrames
|
|
|
|
|
Storyboard.TargetName="ContentPresenter"
|
|
|
|
|
Storyboard.TargetProperty="Background">
|
|
|
|
|
<DiscreteObjectKeyFrame
|
|
|
|
|
KeyTime="0"
|
|
|
|
|
Value="{ThemeResource SubtleButtonBackgroundDisabled}" />
|
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
|
<ObjectAnimationUsingKeyFrames
|
|
|
|
|
Storyboard.TargetName="ContentPresenter"
|
|
|
|
|
Storyboard.TargetProperty="Foreground">
|
|
|
|
|
<DiscreteObjectKeyFrame
|
|
|
|
|
KeyTime="0"
|
|
|
|
|
Value="{ThemeResource SubtleButtonForegroundDisabled}" />
|
2021-09-19 16:22:39 +02:00
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
|
</Storyboard>
|
2022-11-23 19:57:09 +01:00
|
|
|
<VisualState.Setters>
|
|
|
|
|
<!-- DisabledVisual Should be handled by the control, not the animated icon. -->
|
|
|
|
|
<Setter Target="ContentPresenter.(AnimatedIcon.State)" Value="Normal" />
|
|
|
|
|
</VisualState.Setters>
|
2021-09-19 16:22:39 +02:00
|
|
|
</VisualState>
|
|
|
|
|
</VisualStateGroup>
|
|
|
|
|
</VisualStateManager.VisualStateGroups>
|
2022-11-23 19:57:09 +01:00
|
|
|
</ContentPresenter>
|
2021-09-19 16:22:39 +02:00
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
2021-08-23 19:48:52 +02:00
|
|
|
</Style>
|
|
|
|
|
|
2022-11-23 19:57:09 +01:00
|
|
|
<Style
|
|
|
|
|
x:Key="HyperlinkButtonStyle"
|
|
|
|
|
TargetType="HyperlinkButton" />
|
|
|
|
|
|
|
|
|
|
<Style
|
|
|
|
|
x:Key="TextButtonStyle"
|
|
|
|
|
TargetType="ButtonBase">
|
|
|
|
|
<Setter Property="Background" Value="{ThemeResource HyperlinkButtonBackground}" />
|
|
|
|
|
<Setter Property="Foreground" Value="{ThemeResource HyperlinkButtonForeground}" />
|
|
|
|
|
<Setter Property="MinWidth" Value="0" />
|
|
|
|
|
<Setter Property="MinHeight" Value="0" />
|
|
|
|
|
<Setter Property="Margin" Value="0" />
|
2021-08-23 19:48:52 +02:00
|
|
|
<Setter Property="UseSystemFocusVisuals" Value="{StaticResource UseSystemFocusVisuals}" />
|
2020-05-11 21:36:55 +02:00
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
2022-11-23 19:57:09 +01:00
|
|
|
<ControlTemplate TargetType="ButtonBase">
|
2021-08-23 19:48:52 +02:00
|
|
|
<Grid
|
2022-11-23 19:57:09 +01:00
|
|
|
Margin="{TemplateBinding Padding}"
|
2021-08-23 19:48:52 +02:00
|
|
|
Background="{TemplateBinding Background}"
|
2022-11-23 19:57:09 +01:00
|
|
|
CornerRadius="4">
|
|
|
|
|
<ContentPresenter
|
|
|
|
|
x:Name="Text"
|
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
|
|
|
Content="{TemplateBinding Content}"
|
|
|
|
|
FontWeight="SemiBold" />
|
2021-08-23 19:48:52 +02:00
|
|
|
|
2020-05-11 21:36:55 +02:00
|
|
|
<VisualStateManager.VisualStateGroups>
|
|
|
|
|
<VisualStateGroup x:Name="CommonStates">
|
2022-11-23 19:57:09 +01:00
|
|
|
<VisualState x:Name="Normal" />
|
2020-05-11 21:36:55 +02:00
|
|
|
<VisualState x:Name="PointerOver">
|
|
|
|
|
<Storyboard>
|
2022-11-23 19:57:09 +01:00
|
|
|
<ObjectAnimationUsingKeyFrames
|
|
|
|
|
Storyboard.TargetName="Text"
|
|
|
|
|
Storyboard.TargetProperty="Foreground">
|
|
|
|
|
<DiscreteObjectKeyFrame
|
|
|
|
|
KeyTime="0"
|
|
|
|
|
Value="{ThemeResource HyperlinkButtonForegroundPointerOver}" />
|
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
|
<ObjectAnimationUsingKeyFrames
|
|
|
|
|
Storyboard.TargetName="Text"
|
|
|
|
|
Storyboard.TargetProperty="Background">
|
|
|
|
|
<DiscreteObjectKeyFrame
|
|
|
|
|
KeyTime="0"
|
|
|
|
|
Value="{ThemeResource HyperlinkButtonBackgroundPointerOver}" />
|
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
|
<ObjectAnimationUsingKeyFrames
|
|
|
|
|
Storyboard.TargetName="Text"
|
|
|
|
|
Storyboard.TargetProperty="BorderBrush">
|
|
|
|
|
<DiscreteObjectKeyFrame
|
|
|
|
|
KeyTime="0"
|
|
|
|
|
Value="{ThemeResource HyperlinkButtonBorderBrushPointerOver}" />
|
2021-08-23 19:48:52 +02:00
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
|
</Storyboard>
|
|
|
|
|
</VisualState>
|
|
|
|
|
|
2022-11-23 19:57:09 +01:00
|
|
|
<VisualState x:Name="Pressed">
|
2021-08-23 19:48:52 +02:00
|
|
|
<Storyboard>
|
2022-11-23 19:57:09 +01:00
|
|
|
<ObjectAnimationUsingKeyFrames
|
|
|
|
|
Storyboard.TargetName="Text"
|
|
|
|
|
Storyboard.TargetProperty="Foreground">
|
|
|
|
|
<DiscreteObjectKeyFrame
|
|
|
|
|
KeyTime="0"
|
|
|
|
|
Value="{ThemeResource HyperlinkButtonForegroundPressed}" />
|
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
|
<ObjectAnimationUsingKeyFrames
|
|
|
|
|
Storyboard.TargetName="Text"
|
|
|
|
|
Storyboard.TargetProperty="Background">
|
|
|
|
|
<DiscreteObjectKeyFrame
|
|
|
|
|
KeyTime="0"
|
|
|
|
|
Value="{ThemeResource HyperlinkButtonBackgroundPressed}" />
|
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
|
<ObjectAnimationUsingKeyFrames
|
|
|
|
|
Storyboard.TargetName="Text"
|
|
|
|
|
Storyboard.TargetProperty="BorderBrush">
|
|
|
|
|
<DiscreteObjectKeyFrame
|
|
|
|
|
KeyTime="0"
|
|
|
|
|
Value="{ThemeResource HyperlinkButtonBorderBrushPressed}" />
|
2021-08-23 19:48:52 +02:00
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
|
</Storyboard>
|
|
|
|
|
</VisualState>
|
|
|
|
|
|
2022-11-23 19:57:09 +01:00
|
|
|
<VisualState x:Name="Disabled">
|
2021-08-23 19:48:52 +02:00
|
|
|
<Storyboard>
|
2022-11-23 19:57:09 +01:00
|
|
|
<ObjectAnimationUsingKeyFrames
|
|
|
|
|
Storyboard.TargetName="Text"
|
|
|
|
|
Storyboard.TargetProperty="Foreground">
|
|
|
|
|
<DiscreteObjectKeyFrame
|
|
|
|
|
KeyTime="0"
|
|
|
|
|
Value="{ThemeResource HyperlinkButtonForegroundDisabled}" />
|
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
|
<ObjectAnimationUsingKeyFrames
|
|
|
|
|
Storyboard.TargetName="Text"
|
|
|
|
|
Storyboard.TargetProperty="Background">
|
|
|
|
|
<DiscreteObjectKeyFrame
|
|
|
|
|
KeyTime="0"
|
|
|
|
|
Value="{ThemeResource HyperlinkButtonBackgroundDisabled}" />
|
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
|
<ObjectAnimationUsingKeyFrames
|
|
|
|
|
Storyboard.TargetName="Text"
|
|
|
|
|
Storyboard.TargetProperty="BorderBrush">
|
|
|
|
|
<DiscreteObjectKeyFrame
|
|
|
|
|
KeyTime="0"
|
|
|
|
|
Value="{ThemeResource HyperlinkButtonBorderBrushDisabled}" />
|
2021-08-23 19:48:52 +02:00
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
|
</Storyboard>
|
|
|
|
|
</VisualState>
|
|
|
|
|
</VisualStateGroup>
|
2020-05-11 21:36:55 +02:00
|
|
|
</VisualStateManager.VisualStateGroups>
|
|
|
|
|
</Grid>
|
2021-08-23 19:48:52 +02:00
|
|
|
|
2020-05-11 21:36:55 +02:00
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
</Style>
|
|
|
|
|
</ResourceDictionary>
|