2018-06-07 18:27:50 +02:00
|
|
|
<ResourceDictionary
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
2018-07-12 18:19:26 +02:00
|
|
|
|
2018-06-07 18:27:50 +02:00
|
|
|
<Style TargetType="TextBlock" x:Name="TextBlockSettingsHeaderStyle" >
|
|
|
|
<Setter Property="FontFamily" Value="Segoe UI" />
|
|
|
|
<Setter Property="FontSize" Value="14.667" />
|
|
|
|
<Setter Property="FontWeight" Value="SemiLight" />
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<!-- Custom style for Windows.UI.Xaml.Controls.Primitives.HyperlinkButton -->
|
|
|
|
<Style TargetType="HyperlinkButton" x:Name="MainColorHyperlinkButton">
|
|
|
|
<Setter Property="Foreground" Value="{ThemeResource HyperlinkForegroundThemeBrush}" />
|
|
|
|
<Setter Property="Background" Value="{ThemeResource HyperlinkButtonBackgroundThemeBrush}" />
|
|
|
|
<Setter Property="BorderBrush" Value="{ThemeResource HyperlinkButtonBorderThemeBrush}" />
|
|
|
|
<Setter Property="BorderThickness" Value="{ThemeResource HyperlinkButtonBorderThemeThickness}" />
|
|
|
|
<Setter Property="Padding" Value="12,4,12,5" />
|
|
|
|
<Setter Property="HorizontalAlignment" Value="Left" />
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
|
|
<Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}" />
|
|
|
|
<Setter Property="FontWeight" Value="SemiBold" />
|
|
|
|
<Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}" />
|
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="HyperlinkButton">
|
|
|
|
<Grid>
|
|
|
|
<VisualStateManager.VisualStateGroups>
|
|
|
|
<VisualStateGroup x:Name="CommonStates">
|
|
|
|
<VisualState x:Name="Normal" />
|
|
|
|
<VisualState x:Name="PointerOver">
|
|
|
|
<Storyboard>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
|
2018-07-24 16:26:58 +02:00
|
|
|
Storyboard.TargetProperty="Foreground">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemAccentColorLight2}" />
|
2018-06-07 18:27:50 +02:00
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="Pressed">
|
|
|
|
<Storyboard>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
|
|
|
|
Storyboard.TargetProperty="Foreground">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemColorHotlightColor}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="Disabled">
|
|
|
|
<Storyboard>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
|
|
|
|
Storyboard.TargetProperty="Foreground">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource HyperlinkDisabledThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
</VisualStateGroup>
|
|
|
|
<VisualStateGroup x:Name="FocusStates">
|
|
|
|
<VisualState x:Name="Focused">
|
|
|
|
<Storyboard>
|
|
|
|
<DoubleAnimation Storyboard.TargetName="FocusVisualWhite"
|
|
|
|
Storyboard.TargetProperty="Opacity"
|
|
|
|
To="1"
|
|
|
|
Duration="0" />
|
|
|
|
<DoubleAnimation Storyboard.TargetName="FocusVisualBlack"
|
|
|
|
Storyboard.TargetProperty="Opacity"
|
|
|
|
To="1"
|
|
|
|
Duration="0" />
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="Unfocused" />
|
|
|
|
<VisualState x:Name="PointerFocused" />
|
|
|
|
</VisualStateGroup>
|
|
|
|
</VisualStateManager.VisualStateGroups>
|
|
|
|
<Border x:Name="Border"
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
|
Margin="3">
|
|
|
|
<ContentPresenter x:Name="ContentPresenter"
|
|
|
|
Content="{TemplateBinding Content}"
|
|
|
|
ContentTransitions="{TemplateBinding ContentTransitions}"
|
|
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
|
|
Margin="{TemplateBinding Padding}"
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
|
|
AutomationProperties.AccessibilityView="Raw"/>
|
|
|
|
</Border>
|
|
|
|
<Rectangle x:Name="FocusVisualWhite"
|
|
|
|
IsHitTestVisible="False"
|
|
|
|
Stroke="{ThemeResource FocusVisualWhiteStrokeThemeBrush}"
|
|
|
|
StrokeEndLineCap="Square"
|
|
|
|
StrokeDashArray="1,1"
|
|
|
|
Opacity="0"
|
|
|
|
StrokeDashOffset="1.5" />
|
|
|
|
<Rectangle x:Name="FocusVisualBlack"
|
|
|
|
IsHitTestVisible="False"
|
|
|
|
Stroke="{ThemeResource FocusVisualBlackStrokeThemeBrush}"
|
|
|
|
StrokeEndLineCap="Square"
|
|
|
|
StrokeDashArray="1,1"
|
|
|
|
Opacity="0"
|
|
|
|
StrokeDashOffset="0.5" />
|
|
|
|
</Grid>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<!-- Custom style for Windows.UI.Xaml.Controls.SearchBox -->
|
|
|
|
<Style TargetType="SearchBox" x:Name="MainColorSearchBox">
|
|
|
|
<Setter Property="Background" Value="{ThemeResource SearchBoxBackgroundThemeBrush}" />
|
2018-07-12 18:19:26 +02:00
|
|
|
<Setter Property="BorderBrush" Value="{ThemeResource AppBarBackgroundThemeBrush}" />
|
2018-06-07 18:27:50 +02:00
|
|
|
<Setter Property="BorderThickness" Value="{ThemeResource SearchBoxBorderThemeThickness}" />
|
|
|
|
<Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}" />
|
|
|
|
<Setter Property="FontSize" Value="{ThemeResource SearchBoxContentThemeFontSize}" />
|
|
|
|
<Setter Property="FontWeight" Value="{ThemeResource SearchBoxContentThemeFontWeight}"/>
|
|
|
|
<Setter Property="Foreground" Value="{ThemeResource SearchBoxForegroundThemeBrush}" />
|
|
|
|
<Setter Property="Padding" Value="{ThemeResource SearchBoxThemePadding}"/>
|
|
|
|
<Setter Property="IsTabStop" Value="False" />
|
|
|
|
<Setter Property="Typography.StylisticSet20" Value="True"/>
|
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="SearchBox">
|
|
|
|
<Grid x:Name="SearchBoxGrid">
|
|
|
|
<VisualStateManager.VisualStateGroups>
|
|
|
|
<VisualStateGroup x:Name="CommonStates">
|
|
|
|
<VisualState x:Name="Normal">
|
|
|
|
<Storyboard>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SearchBoxGrid" Storyboard.TargetProperty="Background">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Background}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SearchBoxBorder" Storyboard.TargetProperty="BorderBrush">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=BorderBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SearchButton" Storyboard.TargetProperty="Foreground">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Foreground}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="PointerOver">
|
|
|
|
<Storyboard>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SearchBoxGrid" Storyboard.TargetProperty="Background">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SearchBoxPointerOverBackgroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SearchBoxBorder" Storyboard.TargetProperty="BorderBrush">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SearchBoxPointerOverBorderThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SearchButton" Storyboard.TargetProperty="Foreground">
|
2018-07-24 16:26:58 +02:00
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemAccentColorLight3}" />
|
2018-06-07 18:27:50 +02:00
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="Disabled">
|
|
|
|
<Storyboard>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SearchBoxGrid" Storyboard.TargetProperty="Background">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SearchBoxDisabledBackgroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SearchBoxBorder" Storyboard.TargetProperty="BorderBrush">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SearchBoxDisabledBorderThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SearchButton" Storyboard.TargetProperty="Foreground">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SearchBoxDisabledTextThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SearchTextBox" Storyboard.TargetProperty="Background">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="Transparent" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="Focused">
|
|
|
|
<Storyboard>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SearchBoxGrid" Storyboard.TargetProperty="Background">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SearchBoxFocusedBackgroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SearchBoxBorder" Storyboard.TargetProperty="BorderBrush">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SearchBoxFocusedBorderThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SearchButton" Storyboard.TargetProperty="Foreground">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SearchBoxButtonForegroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SearchButton" Storyboard.TargetProperty="Background">
|
2018-07-24 16:26:58 +02:00
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource MainColor}" />
|
2018-06-07 18:27:50 +02:00
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SearchSuggestionsPopupBorder" Storyboard.TargetProperty="BorderBrush">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SearchBoxFocusedBorderThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="FocusedDropDown">
|
|
|
|
<Storyboard>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SearchBoxGrid" Storyboard.TargetProperty="Background">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SearchBoxFocusedBackgroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SearchBoxBorder" Storyboard.TargetProperty="BorderBrush">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SearchBoxFocusedBorderThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SearchButton" Storyboard.TargetProperty="Foreground">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SearchBoxFocusedTextThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SearchSuggestionsPopupBorder" Storyboard.TargetProperty="BorderBrush">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SearchBoxFocusedBorderThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
</VisualStateGroup>
|
|
|
|
</VisualStateManager.VisualStateGroups>
|
|
|
|
<Grid.Resources>
|
|
|
|
<Style x:Key="SearchButtonStyle" TargetType="Button">
|
|
|
|
<Setter Property="IsTabStop" Value="False" />
|
|
|
|
<Setter Property="VerticalAlignment" Value="Stretch" />
|
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="Button">
|
|
|
|
<Grid Background="Transparent">
|
|
|
|
<VisualStateManager.VisualStateGroups>
|
|
|
|
<VisualStateGroup x:Name="CommonStates">
|
|
|
|
<VisualState x:Name="Normal" />
|
|
|
|
<VisualState x:Name="PointerOver">
|
|
|
|
<Storyboard>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SearchGlyph" Storyboard.TargetProperty="Foreground">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SearchBoxButtonPointerOverForegroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SearchButtonBackground" Storyboard.TargetProperty="Background">
|
2018-07-24 16:26:58 +02:00
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource MainColor}" />
|
2018-06-07 18:27:50 +02:00
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="Pressed">
|
|
|
|
<Storyboard>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SearchGlyph" Storyboard.TargetProperty="Foreground">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SearchBoxFocusedTextThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SearchButtonBackground" Storyboard.TargetProperty="Background">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SearchBoxFocusedBackgroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="Disabled" />
|
|
|
|
</VisualStateGroup>
|
|
|
|
<VisualStateGroup x:Name="FocusStates">
|
|
|
|
<VisualState x:Name="Focused" />
|
|
|
|
<VisualState x:Name="Unfocused" />
|
|
|
|
<VisualState x:Name="PointerFocused" />
|
|
|
|
</VisualStateGroup>
|
|
|
|
</VisualStateManager.VisualStateGroups>
|
|
|
|
<Grid x:Name="SearchButtonBackground" Background="{TemplateBinding Background}">
|
|
|
|
<TextBlock x:Name="SearchGlyph"
|
|
|
|
AutomationProperties.AccessibilityView="Raw"
|
|
|
|
FontFamily="{ThemeResource SymbolThemeFontFamily}"
|
|
|
|
Foreground="{TemplateBinding Foreground}"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
FontStyle="Normal"
|
|
|
|
Text=""
|
|
|
|
VerticalAlignment="Center" />
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
<Style x:Key="SearchTextBoxStyle" TargetType="TextBox">
|
|
|
|
<Setter Property="MinWidth" Value="{ThemeResource TextControlThemeMinWidth}" />
|
|
|
|
<Setter Property="MinHeight" Value="{ThemeResource TextControlThemeMinHeight}" />
|
|
|
|
<Setter Property="Foreground" Value="{ThemeResource TextBoxForegroundThemeBrush}" />
|
|
|
|
<Setter Property="Background" Value="{ThemeResource TextBoxBackgroundThemeBrush}" />
|
|
|
|
<Setter Property="BorderBrush" Value="{ThemeResource TextBoxBorderThemeBrush}" />
|
2018-07-24 16:26:58 +02:00
|
|
|
<Setter Property="SelectionHighlightColor" Value="{StaticResource MainColor}" />
|
2018-06-07 18:27:50 +02:00
|
|
|
<Setter Property="BorderThickness" Value="{ThemeResource TextControlBorderThemeThickness}" />
|
|
|
|
<Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}" />
|
|
|
|
<Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}" />
|
|
|
|
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Hidden" />
|
|
|
|
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Hidden" />
|
|
|
|
<Setter Property="ScrollViewer.IsDeferredScrollingEnabled" Value="False" />
|
|
|
|
<Setter Property="Padding" Value="{ThemeResource TextControlThemePadding}"/>
|
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="TextBox">
|
|
|
|
<Grid>
|
|
|
|
<VisualStateManager.VisualStateGroups>
|
|
|
|
<VisualStateGroup x:Name="CommonStates">
|
|
|
|
<VisualState x:Name="Disabled">
|
|
|
|
<Storyboard>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundElement"
|
|
|
|
Storyboard.TargetProperty="Background">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextBoxDisabledBackgroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="BorderElement"
|
|
|
|
Storyboard.TargetProperty="BorderBrush">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextBoxDisabledBorderThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentElement"
|
|
|
|
Storyboard.TargetProperty="Foreground">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextBoxDisabledForegroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="PlaceholderTextContentPresenter"
|
|
|
|
Storyboard.TargetProperty="Foreground">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextBoxDisabledForegroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="Normal">
|
|
|
|
<Storyboard>
|
|
|
|
<DoubleAnimation Storyboard.TargetName="BackgroundElement"
|
|
|
|
Storyboard.TargetProperty="Opacity"
|
|
|
|
Duration="0"
|
|
|
|
To="{ThemeResource TextControlBackgroundThemeOpacity}" />
|
|
|
|
<DoubleAnimation Storyboard.TargetName="BorderElement"
|
|
|
|
Storyboard.TargetProperty="Opacity"
|
|
|
|
Duration="0"
|
|
|
|
To="{ThemeResource TextControlBorderThemeOpacity}" />
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="PointerOver">
|
|
|
|
<Storyboard>
|
|
|
|
<DoubleAnimation Storyboard.TargetName="BackgroundElement"
|
|
|
|
Storyboard.TargetProperty="Opacity"
|
|
|
|
Duration="0"
|
|
|
|
To="{ThemeResource TextControlPointerOverBackgroundThemeOpacity}" />
|
|
|
|
<DoubleAnimation Storyboard.TargetName="BorderElement"
|
|
|
|
Storyboard.TargetProperty="Opacity"
|
|
|
|
Duration="0"
|
|
|
|
To="{ThemeResource TextControlPointerOverBorderThemeOpacity}" />
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="Focused" />
|
|
|
|
</VisualStateGroup>
|
|
|
|
<VisualStateGroup x:Name="ButtonStates" />
|
|
|
|
</VisualStateManager.VisualStateGroups>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Border x:Name="BackgroundElement"
|
|
|
|
Grid.Row="1"
|
|
|
|
Background="{TemplateBinding Background}"
|
2018-07-24 16:26:58 +02:00
|
|
|
Margin="{TemplateBinding BorderThickness}" />
|
2018-06-07 18:27:50 +02:00
|
|
|
<Border x:Name="BorderElement"
|
|
|
|
Grid.Row="1"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
2018-07-24 16:26:58 +02:00
|
|
|
BorderThickness="{TemplateBinding BorderThickness}" />
|
2018-06-07 18:27:50 +02:00
|
|
|
<ContentPresenter x:Name="HeaderContentPresenter"
|
|
|
|
Grid.Row="0"
|
|
|
|
Foreground="{ThemeResource TextBoxForegroundHeaderThemeBrush}"
|
|
|
|
Margin="0,4,0,4"
|
|
|
|
Content="{TemplateBinding Header}"
|
|
|
|
ContentTemplate="{TemplateBinding HeaderTemplate}"
|
|
|
|
FontWeight="Semilight" />
|
|
|
|
<ScrollViewer x:Name="ContentElement"
|
|
|
|
Grid.Row="1"
|
|
|
|
HorizontalScrollMode="{TemplateBinding ScrollViewer.HorizontalScrollMode}"
|
|
|
|
HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
|
|
|
|
VerticalScrollMode="{TemplateBinding ScrollViewer.VerticalScrollMode}"
|
|
|
|
VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}"
|
|
|
|
IsHorizontalRailEnabled="{TemplateBinding ScrollViewer.IsHorizontalRailEnabled}"
|
|
|
|
IsVerticalRailEnabled="{TemplateBinding ScrollViewer.IsVerticalRailEnabled}"
|
|
|
|
IsDeferredScrollingEnabled="{TemplateBinding ScrollViewer.IsDeferredScrollingEnabled}"
|
|
|
|
Margin="{TemplateBinding BorderThickness}"
|
|
|
|
Padding="{TemplateBinding Padding}"
|
|
|
|
IsTabStop="False"
|
|
|
|
AutomationProperties.AccessibilityView="Raw"
|
|
|
|
ZoomMode="Disabled" />
|
|
|
|
<ContentControl x:Name="PlaceholderTextContentPresenter"
|
|
|
|
Grid.Row="1"
|
|
|
|
Foreground="{ThemeResource TextBoxPlaceholderTextThemeBrush}"
|
|
|
|
Margin="{TemplateBinding BorderThickness}"
|
|
|
|
Padding="{TemplateBinding Padding}"
|
|
|
|
IsTabStop="False"
|
|
|
|
Grid.ColumnSpan="2"
|
|
|
|
Content="{TemplateBinding PlaceholderText}"
|
|
|
|
IsHitTestVisible="False" />
|
|
|
|
</Grid>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
</Grid.Resources>
|
|
|
|
<Border x:Name="SearchBoxBorder"
|
|
|
|
Background="Transparent"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}">
|
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition />
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBox x:Name="SearchTextBox"
|
|
|
|
BorderThickness="0"
|
|
|
|
Background="Transparent"
|
|
|
|
FontFamily="{TemplateBinding FontFamily}"
|
|
|
|
FontSize="{TemplateBinding FontSize}"
|
|
|
|
FontWeight="{TemplateBinding FontWeight}"
|
|
|
|
Foreground="{TemplateBinding Foreground}"
|
|
|
|
InputScope="Search"
|
|
|
|
MaxLength="2048"
|
|
|
|
MinHeight="{ThemeResource SearchBoxTextBoxThemeMinHeight}"
|
|
|
|
Padding="{TemplateBinding Padding}"
|
|
|
|
PlaceholderText="{TemplateBinding PlaceholderText}"
|
|
|
|
Style="{StaticResource SearchTextBoxStyle}"
|
|
|
|
TextWrapping="NoWrap"
|
2018-07-12 18:19:26 +02:00
|
|
|
VerticalAlignment="Stretch"
|
2018-07-13 11:30:10 +02:00
|
|
|
Margin="0,5,0,0" />
|
2018-06-07 18:27:50 +02:00
|
|
|
<Button x:Name="SearchButton"
|
|
|
|
AutomationProperties.AccessibilityView="Raw"
|
|
|
|
Background="Transparent"
|
|
|
|
FontWeight="{ThemeResource SearchBoxButtonThemeFontWeight}"
|
|
|
|
Grid.Column="1"
|
|
|
|
Style="{StaticResource SearchButtonStyle}" />
|
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
<Popup x:Name="SearchSuggestionsPopup"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
VerticalAlignment="Bottom">
|
|
|
|
<Border x:Name="SearchSuggestionsPopupBorder"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
|
MinWidth="{ThemeResource SearchBoxSuggestionPopupThemeMinWidth}">
|
|
|
|
<Border.Resources>
|
|
|
|
<Style x:Key="SearchSuggestionListViewItemStyle" TargetType="ListViewItem">
|
|
|
|
<Setter Property="Background" Value="Transparent" />
|
|
|
|
<Setter Property="TabNavigation" Value="Local" />
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
|
|
|
<Setter Property="Margin" Value="0"/>
|
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="ListViewItem">
|
|
|
|
<Border x:Name="OuterContainer">
|
|
|
|
<VisualStateManager.VisualStateGroups>
|
|
|
|
<VisualStateGroup x:Name="CommonStates">
|
|
|
|
<VisualState x:Name="Normal"/>
|
|
|
|
<VisualState x:Name="PointerOver">
|
|
|
|
<Storyboard>
|
|
|
|
<DoubleAnimation Storyboard.TargetName="PointerOverBorder"
|
|
|
|
Storyboard.TargetProperty="Opacity"
|
|
|
|
Duration="0"
|
|
|
|
To="1" />
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="Pressed">
|
|
|
|
<Storyboard>
|
|
|
|
<PointerDownThemeAnimation TargetName="ContentContainer" />
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="PointerOverPressed">
|
|
|
|
<Storyboard>
|
|
|
|
<PointerDownThemeAnimation TargetName="ContentContainer" />
|
|
|
|
<DoubleAnimation Storyboard.TargetName="PointerOverBorder"
|
|
|
|
Storyboard.TargetProperty="Opacity"
|
|
|
|
Duration="0"
|
|
|
|
To="1" />
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="Disabled">
|
|
|
|
<Storyboard>
|
|
|
|
<DoubleAnimation Storyboard.TargetName="ListViewItemContentPresenter"
|
|
|
|
Storyboard.TargetProperty="Opacity"
|
|
|
|
Duration="0"
|
|
|
|
To="{ThemeResource ListViewItemDisabledThemeOpacity}" />
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
</VisualStateGroup>
|
|
|
|
<VisualStateGroup x:Name="FocusStates">
|
|
|
|
<VisualState x:Name="Focused">
|
|
|
|
<Storyboard>
|
|
|
|
<DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisual" />
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="Unfocused"/>
|
|
|
|
<VisualState x:Name="PointerFocused"/>
|
|
|
|
</VisualStateGroup>
|
|
|
|
<VisualStateGroup x:Name="SelectionStates">
|
|
|
|
<VisualState x:Name="Unselecting" />
|
|
|
|
<VisualState x:Name="Unselected" />
|
|
|
|
<VisualState x:Name="UnselectedPointerOver">
|
|
|
|
<Storyboard>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ListViewItemContentPresenter"
|
|
|
|
Storyboard.TargetProperty="Foreground">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SearchBoxButtonForegroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="UnselectedSwiping" />
|
|
|
|
<VisualState x:Name="Selecting" />
|
|
|
|
<VisualState x:Name="Selected">
|
|
|
|
<Storyboard>
|
|
|
|
<DoubleAnimation Storyboard.TargetName="SelectionBackground"
|
|
|
|
Storyboard.TargetProperty="Opacity"
|
|
|
|
Duration="0"
|
|
|
|
To="1" />
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ListViewItemContentPresenter"
|
|
|
|
Storyboard.TargetProperty="Foreground">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SearchBoxButtonForegroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="SelectedSwiping" />
|
|
|
|
<VisualState x:Name="SelectedUnfocused">
|
|
|
|
<Storyboard>
|
|
|
|
<DoubleAnimation Storyboard.TargetName="SelectionBackground"
|
|
|
|
Storyboard.TargetProperty="Opacity"
|
|
|
|
Duration="0"
|
|
|
|
To="1" />
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ListViewItemContentPresenter"
|
|
|
|
Storyboard.TargetProperty="Foreground">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SearchBoxButtonForegroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
</VisualStateGroup>
|
|
|
|
</VisualStateManager.VisualStateGroups>
|
|
|
|
<Grid x:Name="ContentContainer">
|
|
|
|
<Rectangle x:Name="PointerOverBorder"
|
|
|
|
IsHitTestVisible="False"
|
|
|
|
Opacity="0"
|
2018-07-24 16:26:58 +02:00
|
|
|
Fill="{StaticResource MainColor}" />
|
2018-06-07 18:27:50 +02:00
|
|
|
<Rectangle x:Name="FocusVisual"
|
|
|
|
IsHitTestVisible="False"
|
|
|
|
Opacity="0"
|
|
|
|
StrokeThickness="2"
|
|
|
|
Stroke="{ThemeResource ListViewItemFocusBorderThemeBrush}" />
|
|
|
|
<Rectangle x:Name="SelectionBackground"
|
2018-07-24 16:26:58 +02:00
|
|
|
Fill="{StaticResource MainColor}"
|
2018-06-07 18:27:50 +02:00
|
|
|
Opacity="0" />
|
|
|
|
<ContentPresenter x:Name="ListViewItemContentPresenter"
|
|
|
|
ContentTransitions="{TemplateBinding ContentTransitions}"
|
|
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
|
|
Content="{TemplateBinding Content}"
|
|
|
|
FontFamily="{Binding ElementName=SearchTextBox, Path=FontFamily}"
|
|
|
|
FontSize="{Binding ElementName=SearchTextBox, Path=FontSize}"
|
|
|
|
FontWeight="{Binding ElementName=SearchTextBox, Path=FontWeight}"
|
|
|
|
Foreground="{TemplateBinding Foreground}"
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
|
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
</Border.Resources>
|
|
|
|
<Grid MaxHeight="{ThemeResource SearchBoxSuggestionPopupThemeMaxHeight}">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition />
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Border x:Name="IMECandidateListContainer" />
|
|
|
|
<Border x:Name="IMECandidateListSeparator" Grid.Row="1" Visibility="Collapsed" BorderThickness="{ThemeResource SearchBoxIMECandidateListSeparatorThemeThickness}" BorderBrush="{ThemeResource SearchBoxIMECandidateListSeparatorThemeBrush}" />
|
|
|
|
<ListView x:Name="SearchSuggestionsList"
|
|
|
|
Background="{ThemeResource TextBoxBackgroundThemeBrush}"
|
|
|
|
Grid.Row="2"
|
|
|
|
IsTabStop="False"
|
|
|
|
IsItemClickEnabled="true"
|
|
|
|
ItemContainerStyle="{StaticResource SearchSuggestionListViewItemStyle}">
|
|
|
|
<ListView.Resources>
|
|
|
|
<DataTemplate x:Name="HitHighlightedTextBlock">
|
2018-07-24 16:26:58 +02:00
|
|
|
<RichTextBlock x:Name="TextBlock" TextWrapping="Wrap" TextTrimming="WordEllipsis" SelectionHighlightColor="{StaticResource MainColor}" AutomationProperties.AccessibilityView="Raw">
|
2018-06-07 18:27:50 +02:00
|
|
|
<RichTextBlock.Resources>
|
|
|
|
<DataTemplate x:Name="SelectedHitHighlightedRun">
|
|
|
|
<Run Foreground="{ThemeResource TextColor}" FontFamily="Global User Interface" />
|
|
|
|
</DataTemplate>
|
|
|
|
</RichTextBlock.Resources>
|
|
|
|
</RichTextBlock>
|
|
|
|
</DataTemplate>
|
|
|
|
</ListView.Resources>
|
|
|
|
<ListView.ItemContainerTransitions>
|
|
|
|
<TransitionCollection />
|
|
|
|
</ListView.ItemContainerTransitions>
|
|
|
|
<ListView.ItemTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<Grid>
|
|
|
|
<!-- QuerySuggestionTemplate is presented for suggestions of Kind SearchSuggestionKind_Query -->
|
|
|
|
<ContentControl x:Name="QuerySuggestionTemplate"
|
|
|
|
Margin="{ThemeResource SearchBoxQuerySuggestionThemeMargin}"
|
|
|
|
Typography.DiscretionaryLigatures="False"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Visibility="Collapsed" />
|
|
|
|
|
|
|
|
<!-- ResultSuggestionTemplate is presented for suggestions of Kind SearchSuggestionKind_Result -->
|
|
|
|
<Grid x:Name="ResultSuggestionTemplate"
|
|
|
|
Margin="{ThemeResource SearchBoxResultSuggestionThemeMargin}"
|
|
|
|
Typography.DiscretionaryLigatures="False"
|
|
|
|
Visibility="Collapsed" >
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition />
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition />
|
|
|
|
<RowDefinition />
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Image x:Name="ResultSuggestionImage"
|
|
|
|
Grid.RowSpan="2"
|
|
|
|
Width="{ThemeResource SearchBoxResultSuggestionImageThemeWidth}"
|
|
|
|
Height="{ThemeResource SearchBoxResultSuggestionImageThemeHeight}"
|
|
|
|
Margin="{ThemeResource SearchBoxSuggestionSubcomponentThemeMargin}"/>
|
|
|
|
<ContentControl x:Name="ResultSuggestionText"
|
2018-07-24 16:26:58 +02:00
|
|
|
Grid.Row="0" Grid.Column="1"
|
2018-06-07 18:27:50 +02:00
|
|
|
VerticalAlignment="Center"
|
|
|
|
FontWeight="SemiBold" />
|
|
|
|
<ContentControl x:Name="ResultSuggestionDetailText"
|
|
|
|
Grid.Column="1"
|
|
|
|
Grid.Row="1"
|
|
|
|
VerticalAlignment="Center" />
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
<!-- SeparatorSuggestionTemplate is presented for suggestions of Kind SearchSuggestionKind_Separator -->
|
|
|
|
<Grid x:Name="SeparatorSuggestionTemplate"
|
|
|
|
Margin="{ThemeResource SearchBoxSeparatorSuggestionThemeMargin}"
|
|
|
|
Typography.DiscretionaryLigatures="False"
|
|
|
|
Visibility="Collapsed">
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition />
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBlock x:Name="SeparatorSuggestionText"
|
|
|
|
Margin="{ThemeResource SearchBoxSuggestionSubcomponentThemeMargin}"
|
2018-07-24 16:26:58 +02:00
|
|
|
SelectionHighlightColor="{StaticResource MainColor}"
|
2018-06-07 18:27:50 +02:00
|
|
|
TextTrimming="WordEllipsis"
|
|
|
|
VerticalAlignment="Center" />
|
|
|
|
<Border Grid.Column="1"
|
|
|
|
BorderBrush="{ThemeResource SearchBoxSeparatorSuggestionForegroundThemeBrush}"
|
|
|
|
BorderThickness="0,1,0,0"
|
|
|
|
VerticalAlignment="Center"/>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</DataTemplate>
|
|
|
|
</ListView.ItemTemplate>
|
|
|
|
</ListView>
|
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
</Popup>
|
|
|
|
</Grid>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
2018-06-08 11:12:54 +02:00
|
|
|
|
|
|
|
<!-- Custom style for Windows.UI.Xaml.Controls.ToggleSwitch -->
|
|
|
|
<Style TargetType="ToggleSwitch" x:Name="MainColorToggleSwitch">
|
|
|
|
<Setter Property="Foreground" Value="{ThemeResource ToggleSwitchForegroundThemeBrush}" />
|
|
|
|
<Setter Property="HorizontalAlignment" Value="Left" />
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Left" />
|
|
|
|
<Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}" />
|
|
|
|
<Setter Property="FontWeight" Value="SemiBold" />
|
|
|
|
<Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}" />
|
|
|
|
<Setter Property="MinWidth" Value="154" />
|
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="ToggleSwitch">
|
|
|
|
<Border Background="{TemplateBinding Background}"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}">
|
|
|
|
<VisualStateManager.VisualStateGroups>
|
|
|
|
<VisualStateGroup x:Name="CommonStates">
|
|
|
|
<VisualState x:Name="Normal" />
|
|
|
|
<VisualState x:Name="PointerOver">
|
|
|
|
<Storyboard>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SwitchCurtain"
|
|
|
|
Storyboard.TargetProperty="Fill">
|
2018-07-24 16:26:58 +02:00
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource MainColor}" />
|
2018-06-08 11:12:54 +02:00
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder"
|
|
|
|
Storyboard.TargetProperty="Background">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ToggleSwitchTrackPointerOverBackgroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SwitchKnob"
|
|
|
|
Storyboard.TargetProperty="Fill">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ToggleSwitchThumbPointerOverBackgroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SwitchKnob"
|
|
|
|
Storyboard.TargetProperty="Stroke">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ToggleSwitchThumbPointerOverBorderThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="Pressed">
|
|
|
|
<Storyboard>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SwitchCurtain"
|
|
|
|
Storyboard.TargetProperty="Fill">
|
2018-07-24 16:26:58 +02:00
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource MainColor}" />
|
2018-06-08 11:12:54 +02:00
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder"
|
|
|
|
Storyboard.TargetProperty="Background">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ToggleSwitchTrackPressedBackgroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SwitchKnob"
|
|
|
|
Storyboard.TargetProperty="Fill">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ToggleSwitchThumbPressedBackgroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SwitchKnob"
|
|
|
|
Storyboard.TargetProperty="Stroke">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ToggleSwitchThumbPressedForegroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="Disabled">
|
|
|
|
<Storyboard>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderContentPresenter"
|
|
|
|
Storyboard.TargetProperty="Foreground">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ToggleSwitchHeaderDisabledForegroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="OffContentPresenter"
|
|
|
|
Storyboard.TargetProperty="Foreground">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ToggleSwitchDisabledForegroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="OnContentPresenter"
|
|
|
|
Storyboard.TargetProperty="Foreground">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ToggleSwitchDisabledForegroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder"
|
|
|
|
Storyboard.TargetProperty="BorderBrush">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ToggleSwitchOuterBorderDisabledBorderThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder"
|
|
|
|
Storyboard.TargetProperty="Background">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ToggleSwitchTrackDisabledBackgroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SwitchKnob"
|
|
|
|
Storyboard.TargetProperty="Fill">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ToggleSwitchThumbDisabledBackgroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SwitchKnob"
|
|
|
|
Storyboard.TargetProperty="Stroke">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ToggleSwitchThumbDisabledBorderThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SwitchCurtain"
|
|
|
|
Storyboard.TargetProperty="Fill">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ToggleSwitchCurtainDisabledBackgroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
</VisualStateGroup>
|
|
|
|
<VisualStateGroup x:Name="ToggleStates">
|
|
|
|
<VisualStateGroup.Transitions>
|
|
|
|
<VisualTransition x:Name="DraggingToOnTransition"
|
|
|
|
From="Dragging"
|
|
|
|
To="On"
|
|
|
|
GeneratedDuration="0">
|
|
|
|
<Storyboard>
|
|
|
|
<RepositionThemeAnimation TargetName="SwitchKnob" FromHorizontalOffset="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=TemplateSettings.KnobCurrentToOnOffset}" />
|
|
|
|
<RepositionThemeAnimation TargetName="SwitchCurtain" FromHorizontalOffset="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=TemplateSettings.CurtainCurrentToOnOffset}" />
|
|
|
|
</Storyboard>
|
|
|
|
</VisualTransition>
|
|
|
|
<VisualTransition x:Name="DraggingToOffTransition"
|
|
|
|
From="Dragging"
|
|
|
|
To="Off"
|
|
|
|
GeneratedDuration="0">
|
|
|
|
<Storyboard>
|
|
|
|
<RepositionThemeAnimation TargetName="SwitchKnob" FromHorizontalOffset="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=TemplateSettings.KnobCurrentToOffOffset}" />
|
|
|
|
<RepositionThemeAnimation TargetName="SwitchCurtain" FromHorizontalOffset="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=TemplateSettings.CurtainCurrentToOffOffset}" />
|
|
|
|
</Storyboard>
|
|
|
|
</VisualTransition>
|
|
|
|
<VisualTransition x:Name="OnToOffTransition"
|
|
|
|
From="On"
|
|
|
|
To="Off"
|
|
|
|
GeneratedDuration="0">
|
|
|
|
<Storyboard>
|
|
|
|
<RepositionThemeAnimation TargetName="SwitchKnob" FromHorizontalOffset="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=TemplateSettings.KnobOnToOffOffset}" />
|
|
|
|
<RepositionThemeAnimation TargetName="SwitchCurtain" FromHorizontalOffset="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=TemplateSettings.CurtainOnToOffOffset}" />
|
|
|
|
</Storyboard>
|
|
|
|
</VisualTransition>
|
|
|
|
<VisualTransition x:Name="OffToOnTransition"
|
|
|
|
From="Off"
|
|
|
|
To="On"
|
|
|
|
GeneratedDuration="0">
|
|
|
|
<Storyboard>
|
|
|
|
<RepositionThemeAnimation TargetName="SwitchKnob" FromHorizontalOffset="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=TemplateSettings.KnobOffToOnOffset}" />
|
|
|
|
<RepositionThemeAnimation TargetName="SwitchCurtain" FromHorizontalOffset="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=TemplateSettings.CurtainOffToOnOffset}" />
|
|
|
|
</Storyboard>
|
|
|
|
</VisualTransition>
|
|
|
|
</VisualStateGroup.Transitions>
|
|
|
|
<VisualState x:Name="Dragging" />
|
|
|
|
<VisualState x:Name="Off">
|
|
|
|
<Storyboard>
|
|
|
|
<DoubleAnimation Storyboard.TargetName="CurtainTranslateTransform"
|
|
|
|
Storyboard.TargetProperty="X"
|
|
|
|
To="-44"
|
|
|
|
Duration="0" />
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="On">
|
|
|
|
<Storyboard>
|
|
|
|
<DoubleAnimation Storyboard.TargetName="CurtainTranslateTransform"
|
|
|
|
Storyboard.TargetProperty="X"
|
|
|
|
To="0"
|
|
|
|
Duration="0" />
|
|
|
|
<DoubleAnimation Storyboard.TargetName="KnobTranslateTransform"
|
|
|
|
Storyboard.TargetProperty="X"
|
|
|
|
To="38"
|
|
|
|
Duration="0" />
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
</VisualStateGroup>
|
|
|
|
<VisualStateGroup x:Name="ContentStates">
|
|
|
|
<VisualState x:Name="OffContent">
|
|
|
|
<Storyboard>
|
|
|
|
<DoubleAnimation Storyboard.TargetName="OffContentPresenter"
|
|
|
|
Storyboard.TargetProperty="Opacity"
|
|
|
|
To="1"
|
|
|
|
Duration="0" />
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsHitTestVisible" Storyboard.TargetName="OffContentPresenter">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0">
|
|
|
|
<DiscreteObjectKeyFrame.Value>
|
|
|
|
<x:Boolean>True</x:Boolean>
|
|
|
|
</DiscreteObjectKeyFrame.Value>
|
|
|
|
</DiscreteObjectKeyFrame>
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="OnContent">
|
|
|
|
<Storyboard>
|
|
|
|
<DoubleAnimation Storyboard.TargetName="OnContentPresenter"
|
|
|
|
Storyboard.TargetProperty="Opacity"
|
|
|
|
To="1"
|
|
|
|
Duration="0" />
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsHitTestVisible" Storyboard.TargetName="OnContentPresenter">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0">
|
|
|
|
<DiscreteObjectKeyFrame.Value>
|
|
|
|
<x:Boolean>True</x:Boolean>
|
|
|
|
</DiscreteObjectKeyFrame.Value>
|
|
|
|
</DiscreteObjectKeyFrame>
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
</VisualStateGroup>
|
|
|
|
<VisualStateGroup x:Name="FocusStates">
|
|
|
|
<VisualState x:Name="Focused">
|
|
|
|
<Storyboard>
|
|
|
|
<DoubleAnimation Storyboard.TargetName="FocusVisualWhite"
|
|
|
|
Storyboard.TargetProperty="Opacity"
|
|
|
|
To="1"
|
|
|
|
Duration="0" />
|
|
|
|
<DoubleAnimation Storyboard.TargetName="FocusVisualBlack"
|
|
|
|
Storyboard.TargetProperty="Opacity"
|
|
|
|
To="1"
|
|
|
|
Duration="0" />
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="Unfocused" />
|
|
|
|
<VisualState x:Name="PointerFocused" />
|
|
|
|
</VisualStateGroup>
|
|
|
|
</VisualStateManager.VisualStateGroups>
|
|
|
|
<Grid>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<ContentPresenter x:Name="HeaderContentPresenter"
|
|
|
|
Foreground="{ThemeResource ToggleSwitchHeaderForegroundThemeBrush}"
|
|
|
|
Margin="6"
|
|
|
|
Grid.ColumnSpan="2"
|
|
|
|
Content="{TemplateBinding Header}"
|
|
|
|
ContentTemplate="{TemplateBinding HeaderTemplate}"
|
|
|
|
FontWeight="Semilight"
|
|
|
|
AutomationProperties.AccessibilityView="Raw" />
|
|
|
|
<Grid Grid.Row="1" Margin="{TemplateBinding Padding}">
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition Width="7" />
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<ContentPresenter x:Name="OffContentPresenter"
|
|
|
|
MinWidth="65"
|
|
|
|
Margin="6,5,0,16"
|
|
|
|
Opacity="0"
|
|
|
|
IsHitTestVisible="False"
|
|
|
|
Content="{TemplateBinding OffContent}"
|
|
|
|
ContentTemplate="{TemplateBinding OffContentTemplate}"
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
|
|
AutomationProperties.AccessibilityView="Raw" />
|
2018-07-24 16:26:58 +02:00
|
|
|
<ContentPresenter Grid.Column="0" x:Name="OnContentPresenter"
|
2018-06-08 11:12:54 +02:00
|
|
|
MinWidth="65"
|
|
|
|
Margin="6,5,0,16"
|
|
|
|
Opacity="0"
|
|
|
|
IsHitTestVisible="False"
|
|
|
|
Content="{TemplateBinding OnContent}"
|
|
|
|
ContentTemplate="{TemplateBinding OnContentTemplate}"
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
|
|
AutomationProperties.AccessibilityView="Raw" />
|
|
|
|
<Grid Grid.Column="2" Background="Transparent" ManipulationMode="None">
|
|
|
|
<Grid x:Name="SwitchKnobBounds" Height="19" Margin="13,5,13,16">
|
|
|
|
<Border x:Name="OuterBorder"
|
|
|
|
BorderBrush="{ThemeResource ToggleSwitchOuterBorderBorderThemeBrush}"
|
|
|
|
BorderThickness="2">
|
|
|
|
<Border x:Name="InnerBorder"
|
|
|
|
Background="{ThemeResource ToggleSwitchTrackBackgroundThemeBrush}"
|
|
|
|
BorderBrush="{ThemeResource ToggleSwitchTrackBorderThemeBrush}"
|
|
|
|
BorderThickness="1">
|
|
|
|
<ContentPresenter x:Name="SwitchCurtainBounds">
|
|
|
|
<ContentPresenter x:Name="SwitchCurtainClip">
|
|
|
|
<Rectangle x:Name="SwitchCurtain"
|
2018-07-24 16:26:58 +02:00
|
|
|
Fill="{StaticResource MainColor}"
|
2018-06-08 11:12:54 +02:00
|
|
|
Width="44">
|
|
|
|
<Rectangle.RenderTransform>
|
|
|
|
<TranslateTransform x:Name="CurtainTranslateTransform" X="-44" />
|
|
|
|
</Rectangle.RenderTransform>
|
|
|
|
</Rectangle>
|
|
|
|
</ContentPresenter>
|
|
|
|
</ContentPresenter>
|
|
|
|
</Border>
|
|
|
|
</Border>
|
|
|
|
<Rectangle x:Name="SwitchKnob"
|
|
|
|
Fill="{ThemeResource ToggleSwitchThumbBackgroundThemeBrush}"
|
|
|
|
Stroke="{ThemeResource ToggleSwitchThumbBorderThemeBrush}"
|
|
|
|
StrokeThickness="1"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
Width="12">
|
|
|
|
<Rectangle.RenderTransform>
|
|
|
|
<TranslateTransform x:Name="KnobTranslateTransform" />
|
|
|
|
</Rectangle.RenderTransform>
|
|
|
|
</Rectangle>
|
|
|
|
<Rectangle x:Name="FocusVisualWhite"
|
|
|
|
Stroke="{ThemeResource FocusVisualWhiteStrokeThemeBrush}"
|
|
|
|
StrokeEndLineCap="Square"
|
|
|
|
StrokeDashArray="1,1"
|
|
|
|
Opacity="0"
|
|
|
|
Margin="-3"
|
|
|
|
StrokeDashOffset="1.5" />
|
|
|
|
<Rectangle x:Name="FocusVisualBlack"
|
|
|
|
Stroke="{ThemeResource FocusVisualBlackStrokeThemeBrush}"
|
|
|
|
StrokeEndLineCap="Square"
|
|
|
|
StrokeDashArray="1,1"
|
|
|
|
Opacity="0"
|
|
|
|
Margin="-3"
|
|
|
|
StrokeDashOffset="0.5" />
|
|
|
|
</Grid>
|
|
|
|
<Thumb x:Name="SwitchThumb" AutomationProperties.AccessibilityView="Raw">
|
|
|
|
<Thumb.Template>
|
|
|
|
<ControlTemplate TargetType="Thumb">
|
|
|
|
<Rectangle Fill="Transparent" />
|
|
|
|
</ControlTemplate>
|
|
|
|
</Thumb.Template>
|
|
|
|
</Thumb>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
2018-06-08 14:27:35 +02:00
|
|
|
|
|
|
|
<!-- Custom style for Windows.UI.Xaml.Controls.ComboBoxItem -->
|
|
|
|
<Style TargetType="ComboBoxItem" x:Name="MainColorComboBoxItem">
|
|
|
|
<Setter Property="Background" Value="Transparent" />
|
|
|
|
<Setter Property="TabNavigation" Value="Local" />
|
|
|
|
<Setter Property="Padding" Value="8,10" />
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Left" />
|
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="ComboBoxItem">
|
|
|
|
<Border x:Name="LayoutRoot"
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}">
|
|
|
|
<VisualStateManager.VisualStateGroups>
|
|
|
|
<VisualStateGroup x:Name="CommonStates">
|
|
|
|
<VisualState x:Name="Normal" />
|
|
|
|
<VisualState x:Name="PointerOver">
|
|
|
|
<Storyboard>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="LayoutRoot"
|
|
|
|
Storyboard.TargetProperty="Background">
|
2018-07-24 16:26:58 +02:00
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemAccentColorLight3}" />
|
2018-06-08 14:27:35 +02:00
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
|
|
|
|
Storyboard.TargetProperty="Foreground">
|
2018-07-24 16:26:58 +02:00
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextColor}" />
|
2018-06-08 14:27:35 +02:00
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="Disabled">
|
|
|
|
<Storyboard>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
|
|
|
|
Storyboard.TargetProperty="Foreground">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ComboBoxItemDisabledForegroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="Pressed">
|
|
|
|
<Storyboard>
|
|
|
|
<DoubleAnimation Storyboard.TargetName="PressedBackground"
|
|
|
|
Storyboard.TargetProperty="Opacity"
|
|
|
|
To="1"
|
|
|
|
Duration="0" />
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
|
|
|
|
Storyboard.TargetProperty="Foreground">
|
2018-07-24 16:26:58 +02:00
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextColor}" />
|
2018-06-08 14:27:35 +02:00
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
</VisualStateGroup>
|
|
|
|
<VisualStateGroup x:Name="SelectionStates">
|
|
|
|
<VisualState x:Name="Unselected" />
|
|
|
|
<VisualState x:Name="Selected">
|
|
|
|
<Storyboard>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerGrid"
|
|
|
|
Storyboard.TargetProperty="Background">
|
2018-07-24 16:26:58 +02:00
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource MainColor}" />
|
2018-06-08 14:27:35 +02:00
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
|
|
|
|
Storyboard.TargetProperty="Foreground">
|
2018-07-24 16:26:58 +02:00
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextColor}" />
|
2018-06-08 14:27:35 +02:00
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="SelectedUnfocused">
|
|
|
|
<Storyboard>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerGrid"
|
|
|
|
Storyboard.TargetProperty="Background">
|
2018-07-24 16:26:58 +02:00
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemAccentColorLight1}" />
|
2018-06-08 14:27:35 +02:00
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
|
|
|
|
Storyboard.TargetProperty="Foreground">
|
2018-07-24 16:26:58 +02:00
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextColor}" />
|
2018-06-08 14:27:35 +02:00
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="SelectedDisabled">
|
|
|
|
<Storyboard>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerGrid"
|
|
|
|
Storyboard.TargetProperty="Background">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ComboBoxItemSelectedDisabledBackgroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
|
|
|
|
Storyboard.TargetProperty="Foreground">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ComboBoxItemSelectedDisabledForegroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="SelectedPointerOver">
|
|
|
|
<Storyboard>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerGrid"
|
|
|
|
Storyboard.TargetProperty="Background">
|
2018-07-24 16:26:58 +02:00
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemAccentColorLight3}" />
|
2018-06-08 14:27:35 +02:00
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
|
|
|
|
Storyboard.TargetProperty="Foreground">
|
2018-07-24 16:26:58 +02:00
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextColor}" />
|
2018-06-08 14:27:35 +02:00
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="SelectedPressed">
|
|
|
|
<Storyboard>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerGrid"
|
|
|
|
Storyboard.TargetProperty="Background">
|
2018-07-24 16:26:58 +02:00
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource MainColor}" />
|
2018-06-08 14:27:35 +02:00
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
|
|
|
|
Storyboard.TargetProperty="Foreground">
|
2018-07-24 16:26:58 +02:00
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextColor}" />
|
2018-06-08 14:27:35 +02:00
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
</VisualStateGroup>
|
|
|
|
<VisualStateGroup x:Name="FocusStates">
|
|
|
|
<VisualState x:Name="Focused">
|
|
|
|
<Storyboard>
|
|
|
|
<DoubleAnimation Storyboard.TargetName="FocusVisualWhite"
|
|
|
|
Storyboard.TargetProperty="Opacity"
|
|
|
|
To="1"
|
|
|
|
Duration="0" />
|
|
|
|
<DoubleAnimation Storyboard.TargetName="FocusVisualBlack"
|
|
|
|
Storyboard.TargetProperty="Opacity"
|
|
|
|
To="1"
|
|
|
|
Duration="0" />
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="Unfocused" />
|
|
|
|
<VisualState x:Name="PointerFocused" />
|
|
|
|
</VisualStateGroup>
|
|
|
|
</VisualStateManager.VisualStateGroups>
|
|
|
|
<Grid x:Name="InnerGrid"
|
|
|
|
Background="Transparent">
|
|
|
|
<Rectangle x:Name="PressedBackground"
|
2018-07-24 16:26:58 +02:00
|
|
|
Fill="{StaticResource MainColor}"
|
2018-06-08 14:27:35 +02:00
|
|
|
Opacity="0" />
|
|
|
|
<ContentPresenter x:Name="ContentPresenter"
|
|
|
|
Content="{TemplateBinding Content}"
|
|
|
|
ContentTransitions="{TemplateBinding ContentTransitions}"
|
|
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
|
|
Margin="{TemplateBinding Padding}" />
|
|
|
|
<Rectangle x:Name="FocusVisualWhite"
|
|
|
|
Stroke="{ThemeResource FocusVisualWhiteStrokeThemeBrush}"
|
|
|
|
StrokeEndLineCap="Square"
|
|
|
|
StrokeDashArray="1,1"
|
|
|
|
Opacity="0"
|
|
|
|
StrokeDashOffset=".5" />
|
|
|
|
<Rectangle x:Name="FocusVisualBlack"
|
|
|
|
Stroke="{ThemeResource FocusVisualBlackStrokeThemeBrush}"
|
|
|
|
StrokeEndLineCap="Square"
|
|
|
|
StrokeDashArray="1,1"
|
|
|
|
Opacity="0"
|
|
|
|
StrokeDashOffset="1.5" />
|
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
|
2018-07-24 16:26:58 +02:00
|
|
|
<!-- Default style for Windows.UI.Xaml.Controls.ComboBox -->
|
|
|
|
<Style TargetType="ComboBox" x:Name="MainColorComboBox">
|
|
|
|
<Setter Property="Padding" Value="8,0" />
|
|
|
|
<Setter Property="MinWidth" Value="{ThemeResource ComboBoxThemeMinWidth}" />
|
|
|
|
<Setter Property="Foreground" Value="{ThemeResource ComboBoxForegroundThemeBrush}" />
|
|
|
|
<Setter Property="Background" Value="{ThemeResource ComboBoxBackgroundThemeBrush}" />
|
|
|
|
<Setter Property="BorderBrush" Value="{ThemeResource ComboBoxBorderThemeBrush}" />
|
|
|
|
<Setter Property="BorderThickness" Value="{ThemeResource ComboBoxBorderThemeThickness}" />
|
|
|
|
<Setter Property="TabNavigation" Value="Once" />
|
|
|
|
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled" />
|
|
|
|
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" />
|
|
|
|
<Setter Property="ScrollViewer.HorizontalScrollMode" Value="Disabled" />
|
|
|
|
<Setter Property="ScrollViewer.VerticalScrollMode" Value="Auto" />
|
|
|
|
<Setter Property="ScrollViewer.IsVerticalRailEnabled" Value="True" />
|
|
|
|
<Setter Property="ScrollViewer.IsDeferredScrollingEnabled" Value="False" />
|
|
|
|
<Setter Property="ScrollViewer.BringIntoViewOnFocusChange" Value="True" />
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
|
|
|
<Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}" />
|
|
|
|
<Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}" />
|
|
|
|
<Setter Property="ItemsPanel">
|
|
|
|
<Setter.Value>
|
|
|
|
<ItemsPanelTemplate>
|
|
|
|
<CarouselPanel />
|
|
|
|
</ItemsPanelTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="ComboBox">
|
|
|
|
<Grid>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
<ColumnDefinition Width="32" />
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
<VisualStateManager.VisualStateGroups>
|
|
|
|
<VisualStateGroup x:Name="CommonStates">
|
|
|
|
<VisualState x:Name="Normal" />
|
|
|
|
<VisualState x:Name="PointerOver">
|
|
|
|
<Storyboard>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Background"
|
|
|
|
Storyboard.TargetProperty="Background">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ComboBoxPointerOverBackgroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Background"
|
|
|
|
Storyboard.TargetProperty="BorderBrush">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ComboBoxPointerOverBorderThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Highlight"
|
|
|
|
Storyboard.TargetProperty="Fill">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource MainColor}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="Pressed">
|
|
|
|
<Storyboard>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Background"
|
|
|
|
Storyboard.TargetProperty="Background">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource MainColor}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Background"
|
|
|
|
Storyboard.TargetProperty="BorderBrush">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource MainColor}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
|
|
|
|
Storyboard.TargetProperty="Foreground">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource MainColor}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<DoubleAnimation Storyboard.TargetName="PressedBackground"
|
|
|
|
Storyboard.TargetProperty="Opacity"
|
|
|
|
To="1"
|
|
|
|
Duration="0" />
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownGlyph"
|
|
|
|
Storyboard.TargetProperty="Foreground">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ComboBoxArrowPressedForegroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="Disabled">
|
|
|
|
<Storyboard>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Background"
|
|
|
|
Storyboard.TargetProperty="Background">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ComboBoxDisabledBackgroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Background"
|
|
|
|
Storyboard.TargetProperty="BorderBrush">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ComboBoxDisabledBorderThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
|
|
|
|
Storyboard.TargetProperty="Foreground">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ComboBoxDisabledForegroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownGlyph"
|
|
|
|
Storyboard.TargetProperty="Foreground">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ComboBoxArrowDisabledForegroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
</VisualStateGroup>
|
|
|
|
<VisualStateGroup x:Name="FocusStates">
|
|
|
|
<VisualState x:Name="Focused">
|
|
|
|
<Storyboard>
|
|
|
|
<DoubleAnimation Storyboard.TargetName="HighlightBackground"
|
|
|
|
Storyboard.TargetProperty="Opacity"
|
|
|
|
To="1"
|
|
|
|
Duration="0" />
|
|
|
|
<DoubleAnimation Storyboard.TargetName="Highlight"
|
|
|
|
Storyboard.TargetProperty="Opacity"
|
|
|
|
To="1"
|
|
|
|
Duration="0" />
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
|
|
|
|
Storyboard.TargetProperty="Foreground">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ComboBoxFocusedForegroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="FocusedPressed">
|
|
|
|
<Storyboard>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
|
|
|
|
Storyboard.TargetProperty="Foreground">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ComboBoxPressedForegroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Highlight"
|
|
|
|
Storyboard.TargetProperty="Fill">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ComboBoxPressedHighlightThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="Unfocused" />
|
|
|
|
<VisualState x:Name="PointerFocused" />
|
|
|
|
<VisualState x:Name="FocusedDropDown">
|
|
|
|
<Storyboard>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="PopupBorder"
|
|
|
|
Storyboard.TargetProperty="Visibility"
|
|
|
|
Duration="0">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0">
|
|
|
|
<DiscreteObjectKeyFrame.Value>
|
|
|
|
<Visibility>Visible</Visibility>
|
|
|
|
</DiscreteObjectKeyFrame.Value>
|
|
|
|
</DiscreteObjectKeyFrame>
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
</VisualStateGroup>
|
|
|
|
<VisualStateGroup x:Name="DropDownStates">
|
|
|
|
<VisualState x:Name="Opened">
|
|
|
|
<Storyboard>
|
|
|
|
<SplitOpenThemeAnimation
|
|
|
|
OpenedTargetName="PopupBorder"
|
|
|
|
ContentTargetName="ScrollViewer"
|
|
|
|
ClosedTargetName="ContentPresenter"
|
|
|
|
ContentTranslationOffset="0"
|
|
|
|
OffsetFromCenter="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=TemplateSettings.DropDownOffset}"
|
|
|
|
OpenedLength="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=TemplateSettings.DropDownOpenedHeight}"
|
|
|
|
ClosedLength="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=TemplateSettings.DropDownClosedHeight}" />
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="Closed">
|
|
|
|
<Storyboard>
|
|
|
|
<SplitCloseThemeAnimation
|
|
|
|
OpenedTargetName="PopupBorder"
|
|
|
|
ContentTargetName="ScrollViewer"
|
|
|
|
ClosedTargetName="ContentPresenter"
|
|
|
|
ContentTranslationOffset="40"
|
|
|
|
OffsetFromCenter="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=TemplateSettings.DropDownOffset}"
|
|
|
|
ContentTranslationDirection="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=TemplateSettings.SelectedItemDirection}"
|
|
|
|
OpenedLength="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=TemplateSettings.DropDownOpenedHeight}"
|
|
|
|
ClosedLength="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=TemplateSettings.DropDownClosedHeight}" />
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
</VisualStateGroup>
|
|
|
|
</VisualStateManager.VisualStateGroups>
|
|
|
|
|
|
|
|
<ContentPresenter x:Name="HeaderContentPresenter"
|
|
|
|
Foreground="{ThemeResource ComboBoxHeaderForegroundThemeBrush}"
|
|
|
|
Margin="{ThemeResource ComboBoxHeaderThemeMargin}"
|
|
|
|
FlowDirection="{TemplateBinding FlowDirection}"
|
|
|
|
FontWeight="{ThemeResource ComboBoxHeaderThemeFontWeight}"
|
|
|
|
Visibility="Collapsed"
|
|
|
|
Content="{TemplateBinding Header}"
|
|
|
|
ContentTemplate="{TemplateBinding HeaderTemplate}" />
|
|
|
|
|
|
|
|
<Border x:Name="Background"
|
|
|
|
Grid.Row="1"
|
|
|
|
Grid.ColumnSpan="2" Grid.Column="0"
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}" />
|
|
|
|
<Rectangle x:Name="PressedBackground"
|
|
|
|
Grid.Row="1" Grid.Column="0"
|
|
|
|
Fill="{ThemeResource ComboBoxPressedHighlightThemeBrush}"
|
|
|
|
Margin="{TemplateBinding BorderThickness}"
|
|
|
|
Opacity="0" />
|
|
|
|
<Border x:Name="HighlightBackground"
|
|
|
|
Grid.Row="1"
|
|
|
|
Grid.ColumnSpan="2" Grid.Column="0"
|
|
|
|
Background="{ThemeResource ComboBoxFocusedBackgroundThemeBrush}"
|
|
|
|
BorderBrush="{ThemeResource ComboBoxFocusedBorderThemeBrush}"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
|
Opacity="0" />
|
|
|
|
<Rectangle x:Name="Highlight"
|
|
|
|
Grid.Row="1" Grid.Column="0"
|
|
|
|
Fill="{ThemeResource MainColor}"
|
|
|
|
Margin="{TemplateBinding BorderThickness}"
|
|
|
|
Opacity="0" />
|
|
|
|
<ContentPresenter x:Name="ContentPresenter"
|
|
|
|
Grid.Row="1" Grid.Column="0"
|
|
|
|
Margin="{TemplateBinding Padding}"
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
|
|
|
|
<TextBlock x:Name="PlaceholderTextBlock"
|
|
|
|
Text="{TemplateBinding PlaceholderText}"
|
|
|
|
Foreground="{ThemeResource ComboBoxPlaceholderTextForegroundThemeBrush}"
|
|
|
|
FontWeight="{ThemeResource ComboBoxPlaceholderTextThemeFontWeight}"
|
|
|
|
SelectionHighlightColor="{StaticResource MainColor}" />
|
|
|
|
</ContentPresenter>
|
|
|
|
<TextBlock x:Name="DropDownGlyph"
|
|
|
|
Text=""
|
|
|
|
Grid.Row="1"
|
|
|
|
Grid.Column="1"
|
|
|
|
IsHitTestVisible="False"
|
|
|
|
Margin="0,0,6,4"
|
|
|
|
Foreground="{ThemeResource ComboBoxArrowForegroundThemeBrush}"
|
|
|
|
FontWeight="Bold"
|
|
|
|
FontSize="{ThemeResource ComboBoxArrowThemeFontSize}"
|
|
|
|
FontFamily="{ThemeResource SymbolThemeFontFamily}"
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
AutomationProperties.AccessibilityView="Raw"
|
|
|
|
SelectionHighlightColor="{StaticResource MainColor}" />
|
|
|
|
<Popup Grid.Row="0" Grid.Column="0" x:Name="Popup">
|
|
|
|
<Border x:Name="PopupBorder"
|
|
|
|
Background="{ThemeResource ComboBoxPopupBackgroundThemeBrush}"
|
|
|
|
BorderBrush="{ThemeResource ComboBoxPopupBorderThemeBrush}"
|
|
|
|
BorderThickness="{ThemeResource ComboBoxPopupBorderThemeThickness}"
|
|
|
|
HorizontalAlignment="Stretch">
|
|
|
|
<ScrollViewer x:Name="ScrollViewer" Foreground="{ThemeResource ComboBoxPopupForegroundThemeBrush}"
|
|
|
|
MinWidth="{ThemeResource ComboBoxPopupThemeMinWidth}"
|
|
|
|
VerticalSnapPointsType="OptionalSingle"
|
|
|
|
VerticalSnapPointsAlignment="Near"
|
|
|
|
HorizontalScrollMode="{TemplateBinding ScrollViewer.HorizontalScrollMode}"
|
|
|
|
HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
|
|
|
|
VerticalScrollMode="{TemplateBinding ScrollViewer.VerticalScrollMode}"
|
|
|
|
VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}"
|
|
|
|
IsHorizontalRailEnabled="{TemplateBinding ScrollViewer.IsHorizontalRailEnabled}"
|
|
|
|
IsVerticalRailEnabled="{TemplateBinding ScrollViewer.IsVerticalRailEnabled}"
|
|
|
|
IsDeferredScrollingEnabled="{TemplateBinding ScrollViewer.IsDeferredScrollingEnabled}"
|
|
|
|
BringIntoViewOnFocusChange="{TemplateBinding ScrollViewer.BringIntoViewOnFocusChange}"
|
|
|
|
ZoomMode="Disabled"
|
|
|
|
AutomationProperties.AccessibilityView="Raw">
|
|
|
|
<ItemsPresenter/>
|
|
|
|
</ScrollViewer>
|
|
|
|
</Border>
|
|
|
|
</Popup>
|
|
|
|
</Grid>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
|
2018-06-08 14:27:35 +02:00
|
|
|
<!-- Custom style for Windows.UI.Xaml.Controls.DatePicker -->
|
|
|
|
<Style TargetType="DatePicker" x:Name="MainColorDatePicker">
|
|
|
|
<Setter Property="Orientation" Value="Horizontal"/>
|
|
|
|
<Setter Property="IsTabStop" Value="False"/>
|
|
|
|
<Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}" />
|
|
|
|
<Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}" />
|
|
|
|
<Setter Property="Foreground" Value="{ThemeResource DatePickerForegroundThemeBrush}"/>
|
|
|
|
<Setter Property="HorizontalAlignment" Value="Left"/>
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="DatePicker">
|
|
|
|
<Border x:Name="LayoutRoot"
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}">
|
|
|
|
<Grid Margin="{TemplateBinding Padding}">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<ContentPresenter x:Name="HeaderContentPresenter"
|
|
|
|
Foreground="{ThemeResource DatePickerHeaderForegroundThemeBrush}"
|
|
|
|
Margin="{ThemeResource DatePickerHeaderThemeMargin}"
|
|
|
|
FlowDirection="{TemplateBinding FlowDirection}"
|
|
|
|
Content="{TemplateBinding Header}"
|
|
|
|
ContentTemplate="{TemplateBinding HeaderTemplate}"
|
|
|
|
FontWeight="{ThemeResource DatePickerHeaderThemeFontWeight}" />
|
|
|
|
<StackPanel Grid.Row="1" Orientation="{TemplateBinding Orientation}">
|
|
|
|
<Border x:Name="FirstPickerHost">
|
|
|
|
<ComboBox x:Name="DayPicker"
|
|
|
|
MinWidth="{ThemeResource DatePickerSelectorThemeMinWidth}"
|
|
|
|
FontWeight="{TemplateBinding FontWeight}"
|
|
|
|
FontSize="{TemplateBinding FontSize}"
|
|
|
|
FontFamily="{TemplateBinding FontFamily}"
|
|
|
|
Foreground="{TemplateBinding Foreground}"
|
|
|
|
ItemContainerStyle="{StaticResource MainColorComboBoxItem}" />
|
|
|
|
</Border>
|
|
|
|
<Rectangle x:Name="FirstPickerSpacing"
|
|
|
|
Width="{ThemeResource DatePickerSpacingThemeWidth}"
|
|
|
|
Height="{ThemeResource DatePickerSpacingThemeHeight}"/>
|
|
|
|
<Border x:Name="SecondPickerHost">
|
|
|
|
<ComboBox x:Name="MonthPicker"
|
|
|
|
MinWidth="{ThemeResource DatePickerSelectorThemeMinWidth}"
|
|
|
|
FontWeight="{TemplateBinding FontWeight}"
|
|
|
|
FontSize="{TemplateBinding FontSize}"
|
|
|
|
FontFamily="{TemplateBinding FontFamily}"
|
|
|
|
Foreground="{TemplateBinding Foreground}"
|
2018-07-24 16:26:58 +02:00
|
|
|
ItemContainerStyle="{StaticResource MainColorComboBoxItem}"
|
|
|
|
Style="{StaticResource MainColorComboBox}" />
|
2018-06-08 14:27:35 +02:00
|
|
|
</Border>
|
|
|
|
<Rectangle x:Name="SecondPickerSpacing"
|
|
|
|
Width="{ThemeResource DatePickerSpacingThemeWidth}"
|
|
|
|
Height="{ThemeResource DatePickerSpacingThemeHeight}"/>
|
|
|
|
<Border x:Name="ThirdPickerHost">
|
|
|
|
<ComboBox x:Name="YearPicker"
|
|
|
|
MinWidth="{ThemeResource DatePickerSelectorThemeMinWidth}"
|
|
|
|
FontWeight="{TemplateBinding FontWeight}"
|
|
|
|
FontSize="{TemplateBinding FontSize}"
|
|
|
|
FontFamily="{TemplateBinding FontFamily}"
|
|
|
|
Foreground="{TemplateBinding Foreground}"
|
2018-07-24 16:26:58 +02:00
|
|
|
ItemContainerStyle="{StaticResource MainColorComboBoxItem}"
|
|
|
|
Style="{StaticResource MainColorComboBox}" />
|
2018-06-08 14:27:35 +02:00
|
|
|
</Border>
|
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
2018-06-26 18:14:01 +02:00
|
|
|
|
|
|
|
<!-- Custom style for Windows.UI.Xaml.Controls.TimePicker -->
|
|
|
|
<Style TargetType="TimePicker" x:Name="MainColorTimePicker">
|
|
|
|
<Setter Property="IsTabStop" Value="False" />
|
|
|
|
<Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}" />
|
|
|
|
<Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}" />
|
|
|
|
<Setter Property="Foreground" Value="{ThemeResource TimePickerForegroundThemeBrush}"/>
|
|
|
|
<Setter Property="HorizontalAlignment" Value="Left" />
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="TimePicker">
|
|
|
|
<Border x:Name="LayoutRoot"
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}">
|
|
|
|
<Grid Margin="{TemplateBinding Padding}">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<ContentPresenter x:Name="HeaderContentPresenter"
|
|
|
|
Foreground="{ThemeResource TimePickerHeaderForegroundThemeBrush}"
|
|
|
|
Margin="{ThemeResource TimePickerHeaderThemeMargin}"
|
|
|
|
FlowDirection="{TemplateBinding FlowDirection}"
|
|
|
|
Content="{TemplateBinding Header}"
|
|
|
|
ContentTemplate="{TemplateBinding HeaderTemplate}"
|
|
|
|
FontWeight="{ThemeResource TimePickerHeaderThemeFontWeight}" />
|
|
|
|
<StackPanel Grid.Row="1" Orientation="Horizontal">
|
|
|
|
<Border x:Name="FirstPickerHost" Margin="{ThemeResource TimePickerFirstHostThemeMargin}">
|
|
|
|
<ComboBox x:Name="HourPicker"
|
|
|
|
MinWidth="{ThemeResource TimePickerSelectorThemeMinWidth}"
|
|
|
|
FontWeight="{TemplateBinding FontWeight}"
|
|
|
|
FontSize="{TemplateBinding FontSize}"
|
|
|
|
FontFamily="{TemplateBinding FontFamily}"
|
|
|
|
Foreground="{TemplateBinding Foreground}"
|
2018-07-24 16:26:58 +02:00
|
|
|
ItemContainerStyle="{StaticResource MainColorComboBoxItem}"
|
|
|
|
Style="{StaticResource MainColorComboBox}" />
|
2018-06-26 18:14:01 +02:00
|
|
|
</Border>
|
|
|
|
<Border x:Name="SecondPickerHost">
|
|
|
|
<ComboBox x:Name="MinutePicker"
|
|
|
|
MinWidth="{ThemeResource TimePickerSelectorThemeMinWidth}"
|
|
|
|
FontWeight="{TemplateBinding FontWeight}"
|
|
|
|
FontSize="{TemplateBinding FontSize}"
|
|
|
|
FontFamily="{TemplateBinding FontFamily}"
|
|
|
|
Foreground="{TemplateBinding Foreground}"
|
2018-07-24 16:26:58 +02:00
|
|
|
ItemContainerStyle="{StaticResource MainColorComboBoxItem}"
|
|
|
|
Style="{StaticResource MainColorComboBox}" />
|
2018-06-26 18:14:01 +02:00
|
|
|
</Border>
|
|
|
|
<Border x:Name="ThirdPickerHost" Margin="{ThemeResource TimePickerThirdHostThemeMargin}">
|
|
|
|
<ComboBox x:Name="PeriodPicker"
|
|
|
|
MinWidth="{ThemeResource TimePickerSelectorThemeMinWidth}"
|
|
|
|
FontWeight="{TemplateBinding FontWeight}"
|
|
|
|
FontSize="{TemplateBinding FontSize}"
|
|
|
|
FontFamily="{TemplateBinding FontFamily}"
|
|
|
|
Foreground="{TemplateBinding Foreground}"
|
2018-07-24 16:26:58 +02:00
|
|
|
ItemContainerStyle="{StaticResource MainColorComboBoxItem}"
|
|
|
|
Style="{StaticResource MainColorComboBox}" />
|
2018-06-26 18:14:01 +02:00
|
|
|
</Border>
|
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
2018-07-24 16:26:58 +02:00
|
|
|
|
|
|
|
<!-- Custom style for Windows.UI.Xaml.Controls.Button -->
|
|
|
|
<Style TargetType="Button" x:Name="MainColorButton">
|
|
|
|
<Setter Property="Background" Value="{ThemeResource SystemAccentColor}" />
|
|
|
|
<Setter Property="Foreground" Value="{ThemeResource SystemColorHighlightTextColor}"/>
|
|
|
|
<Setter Property="BorderBrush" Value="{ThemeResource ButtonBorderThemeBrush}" />
|
|
|
|
<Setter Property="BorderThickness" Value="{ThemeResource ButtonBorderThemeThickness}" />
|
|
|
|
<Setter Property="Padding" Value="12,4,12,4" />
|
|
|
|
<Setter Property="HorizontalAlignment" Value="Left" />
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
|
|
<Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}" />
|
|
|
|
<Setter Property="FontWeight" Value="SemiBold" />
|
|
|
|
<Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}" />
|
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="Button">
|
|
|
|
<Grid>
|
|
|
|
<VisualStateManager.VisualStateGroups>
|
|
|
|
<VisualStateGroup x:Name="CommonStates">
|
|
|
|
<VisualState x:Name="Normal" />
|
|
|
|
<VisualState x:Name="PointerOver">
|
|
|
|
<Storyboard>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border"
|
|
|
|
Storyboard.TargetProperty="Background">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemAccentColorLight3}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
|
|
|
|
Storyboard.TargetProperty="Foreground">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ButtonPointerOverForegroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="Pressed">
|
|
|
|
<Storyboard>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border"
|
|
|
|
Storyboard.TargetProperty="Background">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ButtonPressedBackgroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
|
|
|
|
Storyboard.TargetProperty="Foreground">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ButtonPressedForegroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="Disabled">
|
|
|
|
<Storyboard>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border"
|
|
|
|
Storyboard.TargetProperty="Background">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ButtonDisabledBackgroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border"
|
|
|
|
Storyboard.TargetProperty="BorderBrush">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ButtonDisabledBorderThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
|
|
|
|
Storyboard.TargetProperty="Foreground">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ButtonDisabledForegroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
</VisualStateGroup>
|
|
|
|
<VisualStateGroup x:Name="FocusStates">
|
|
|
|
<VisualState x:Name="Focused">
|
|
|
|
<Storyboard>
|
|
|
|
<DoubleAnimation Storyboard.TargetName="FocusVisualWhite"
|
|
|
|
Storyboard.TargetProperty="Opacity"
|
|
|
|
To="1"
|
|
|
|
Duration="0" />
|
|
|
|
<DoubleAnimation Storyboard.TargetName="FocusVisualBlack"
|
|
|
|
Storyboard.TargetProperty="Opacity"
|
|
|
|
To="1"
|
|
|
|
Duration="0" />
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="Unfocused" />
|
|
|
|
<VisualState x:Name="PointerFocused" />
|
|
|
|
</VisualStateGroup>
|
|
|
|
</VisualStateManager.VisualStateGroups>
|
|
|
|
<Border x:Name="Border"
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
|
Margin="3">
|
|
|
|
<ContentPresenter x:Name="ContentPresenter"
|
|
|
|
Content="{TemplateBinding Content}"
|
|
|
|
ContentTransitions="{TemplateBinding ContentTransitions}"
|
|
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
|
|
Margin="{TemplateBinding Padding}"
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
|
|
AutomationProperties.AccessibilityView="Raw"/>
|
|
|
|
</Border>
|
|
|
|
<Rectangle x:Name="FocusVisualWhite"
|
|
|
|
IsHitTestVisible="False"
|
|
|
|
Stroke="{ThemeResource FocusVisualWhiteStrokeThemeBrush}"
|
|
|
|
StrokeEndLineCap="Square"
|
|
|
|
StrokeDashArray="1,1"
|
|
|
|
Opacity="0"
|
|
|
|
StrokeDashOffset="1.5" />
|
|
|
|
<Rectangle x:Name="FocusVisualBlack"
|
|
|
|
IsHitTestVisible="False"
|
|
|
|
Stroke="{ThemeResource FocusVisualBlackStrokeThemeBrush}"
|
|
|
|
StrokeEndLineCap="Square"
|
|
|
|
StrokeDashArray="1,1"
|
|
|
|
Opacity="0"
|
|
|
|
StrokeDashOffset="0.5" />
|
|
|
|
</Grid>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<!-- Custom style for Windows.UI.Xaml.Controls.Slider -->
|
|
|
|
<Style TargetType="Slider" x:Name="MainColorSlider">
|
|
|
|
<Setter Property="Background" Value="{ThemeResource SliderTrackBackgroundThemeBrush}" />
|
|
|
|
<Setter Property="BorderBrush" Value="{ThemeResource SliderBorderThemeBrush}" />
|
|
|
|
<Setter Property="BorderThickness" Value="{ThemeResource SliderBorderThemeThickness}" />
|
|
|
|
<Setter Property="Foreground" Value="{ThemeResource SystemAccentColor}" />
|
|
|
|
<Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}" />
|
|
|
|
<Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}" />
|
|
|
|
<Setter Property="ManipulationMode" Value="None" />
|
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="Slider">
|
|
|
|
<Grid Margin="{TemplateBinding Padding}">
|
|
|
|
<Grid.Resources>
|
|
|
|
<Style TargetType="Thumb" x:Key="SliderThumbStyle">
|
|
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
|
|
<Setter Property="BorderBrush" Value="{ThemeResource SliderThumbBorderThemeBrush}" />
|
|
|
|
<Setter Property="Background" Value="{ThemeResource SliderThumbBackgroundThemeBrush}" />
|
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="Thumb">
|
|
|
|
<Border Background="{TemplateBinding Background}"
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}" />
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
</Grid.Resources>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<VisualStateManager.VisualStateGroups>
|
|
|
|
<VisualStateGroup x:Name="CommonStates">
|
|
|
|
<VisualState x:Name="Normal" />
|
|
|
|
<VisualState x:Name="Pressed">
|
|
|
|
<Storyboard>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="HorizontalDecreaseRect"
|
|
|
|
Storyboard.TargetProperty="Fill">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemAccentColorDark1}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="HorizontalTrackRect"
|
|
|
|
Storyboard.TargetProperty="Fill">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderTrackPressedBackgroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="VerticalDecreaseRect"
|
|
|
|
Storyboard.TargetProperty="Fill">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemAccentColorDark1}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="VerticalTrackRect"
|
|
|
|
Storyboard.TargetProperty="Fill">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderTrackPressedBackgroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="HorizontalThumb"
|
|
|
|
Storyboard.TargetProperty="Background">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderThumbPressedBackgroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="HorizontalThumb"
|
|
|
|
Storyboard.TargetProperty="BorderBrush">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderThumbPressedBorderThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="VerticalThumb"
|
|
|
|
Storyboard.TargetProperty="Background">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderThumbPressedBackgroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="VerticalThumb"
|
|
|
|
Storyboard.TargetProperty="BorderBrush">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderThumbPressedBorderThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="Disabled">
|
|
|
|
<Storyboard>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="HorizontalBorder"
|
|
|
|
Storyboard.TargetProperty="Stroke">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderDisabledBorderThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="VerticalBorder"
|
|
|
|
Storyboard.TargetProperty="Stroke">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderDisabledBorderThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="HorizontalDecreaseRect"
|
|
|
|
Storyboard.TargetProperty="Fill">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderTrackDecreaseDisabledBackgroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="HorizontalTrackRect"
|
|
|
|
Storyboard.TargetProperty="Fill">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderTrackDisabledBackgroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="VerticalDecreaseRect"
|
|
|
|
Storyboard.TargetProperty="Fill">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderTrackDecreaseDisabledBackgroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="VerticalTrackRect"
|
|
|
|
Storyboard.TargetProperty="Fill">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderTrackDisabledBackgroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="HorizontalThumb"
|
|
|
|
Storyboard.TargetProperty="Background">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderThumbDisabledBackgroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="HorizontalThumb"
|
|
|
|
Storyboard.TargetProperty="BorderBrush">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderThumbDisabledBackgroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="VerticalThumb"
|
|
|
|
Storyboard.TargetProperty="Background">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderThumbDisabledBackgroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="VerticalThumb"
|
|
|
|
Storyboard.TargetProperty="BorderBrush">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderThumbDisabledBackgroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="TopTickBar"
|
|
|
|
Storyboard.TargetProperty="Fill">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderTickMarkOutsideDisabledForegroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="HorizontalInlineTickBar"
|
|
|
|
Storyboard.TargetProperty="Fill">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderTickMarkInlineDisabledForegroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="BottomTickBar"
|
|
|
|
Storyboard.TargetProperty="Fill">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderTickMarkOutsideDisabledForegroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="LeftTickBar"
|
|
|
|
Storyboard.TargetProperty="Fill">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderTickMarkOutsideDisabledForegroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="VerticalInlineTickBar"
|
|
|
|
Storyboard.TargetProperty="Fill">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderTickMarkInlineDisabledForegroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RightTickBar"
|
|
|
|
Storyboard.TargetProperty="Fill">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderTickMarkOutsideDisabledForegroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="PointerOver">
|
|
|
|
<Storyboard>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="HorizontalDecreaseRect"
|
|
|
|
Storyboard.TargetProperty="Fill">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemAccentColorLight1}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="HorizontalTrackRect"
|
|
|
|
Storyboard.TargetProperty="Fill">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderTrackPointerOverBackgroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="VerticalDecreaseRect"
|
|
|
|
Storyboard.TargetProperty="Fill">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemAccentColorLight1}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="VerticalTrackRect"
|
|
|
|
Storyboard.TargetProperty="Fill">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderTrackPointerOverBackgroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="HorizontalThumb"
|
|
|
|
Storyboard.TargetProperty="Background">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderThumbPointerOverBackgroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="HorizontalThumb"
|
|
|
|
Storyboard.TargetProperty="BorderBrush">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderThumbPointerOverBorderThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="VerticalThumb"
|
|
|
|
Storyboard.TargetProperty="Background">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderThumbPointerOverBackgroundThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="VerticalThumb"
|
|
|
|
Storyboard.TargetProperty="BorderBrush">
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderThumbPointerOverBorderThemeBrush}" />
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
</VisualStateGroup>
|
|
|
|
<VisualStateGroup x:Name="FocusStates">
|
|
|
|
<VisualState x:Name="Focused">
|
|
|
|
<Storyboard>
|
|
|
|
<DoubleAnimation Storyboard.TargetName="FocusVisualWhiteHorizontal"
|
|
|
|
Storyboard.TargetProperty="Opacity"
|
|
|
|
To="1"
|
|
|
|
Duration="0" />
|
|
|
|
<DoubleAnimation Storyboard.TargetName="FocusVisualBlackHorizontal"
|
|
|
|
Storyboard.TargetProperty="Opacity"
|
|
|
|
To="1"
|
|
|
|
Duration="0" />
|
|
|
|
<DoubleAnimation Storyboard.TargetName="FocusVisualWhiteVertical"
|
|
|
|
Storyboard.TargetProperty="Opacity"
|
|
|
|
To="1"
|
|
|
|
Duration="0" />
|
|
|
|
<DoubleAnimation Storyboard.TargetName="FocusVisualBlackVertical"
|
|
|
|
Storyboard.TargetProperty="Opacity"
|
|
|
|
To="1"
|
|
|
|
Duration="0" />
|
|
|
|
</Storyboard>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="Unfocused" />
|
|
|
|
</VisualStateGroup>
|
|
|
|
</VisualStateManager.VisualStateGroups>
|
|
|
|
|
|
|
|
<ContentPresenter x:Name="HeaderContentPresenter"
|
|
|
|
Foreground="{ThemeResource SliderHeaderForegroundThemeBrush}"
|
|
|
|
Margin="{ThemeResource SliderHeaderThemeMargin}"
|
|
|
|
Content="{TemplateBinding Header}"
|
|
|
|
ContentTemplate="{TemplateBinding HeaderTemplate}"
|
|
|
|
FontWeight="{ThemeResource SliderHeaderThemeFontWeight}" />
|
|
|
|
|
|
|
|
<Grid x:Name="SliderContainer" Background="Transparent" Grid.Row="1">
|
|
|
|
<Grid x:Name="HorizontalTemplate">
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="17" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="32" />
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
<Rectangle x:Name="HorizontalTrackRect"
|
|
|
|
Fill="{TemplateBinding Background}"
|
|
|
|
Grid.Row="1"
|
|
|
|
Grid.ColumnSpan="3" />
|
|
|
|
<Rectangle x:Name="HorizontalDecreaseRect"
|
|
|
|
Fill="{TemplateBinding Foreground}"
|
|
|
|
Grid.Row="1" Grid.Column="0" />
|
|
|
|
<TickBar x:Name="TopTickBar"
|
|
|
|
Visibility="Collapsed"
|
|
|
|
Fill="{ThemeResource SliderTickmarkOutsideBackgroundThemeBrush}"
|
|
|
|
Height="{ThemeResource SliderOutsideTickBarThemeHeight}"
|
|
|
|
VerticalAlignment="Bottom"
|
|
|
|
Margin="0,0,0,2"
|
|
|
|
Grid.Row="0" Grid.ColumnSpan="3" Grid.Column="0" />
|
|
|
|
<TickBar x:Name="HorizontalInlineTickBar"
|
|
|
|
Visibility="Collapsed"
|
|
|
|
Fill="{ThemeResource SliderTickMarkInlineBackgroundThemeBrush}"
|
|
|
|
Height="{ThemeResource SliderTrackThemeHeight}"
|
|
|
|
Grid.Row="1"
|
|
|
|
Grid.ColumnSpan="3" Grid.Column="0" />
|
|
|
|
<TickBar x:Name="BottomTickBar"
|
|
|
|
Visibility="Collapsed"
|
|
|
|
Fill="{ThemeResource SliderTickmarkOutsideBackgroundThemeBrush}"
|
|
|
|
Height="{ThemeResource SliderOutsideTickBarThemeHeight}"
|
|
|
|
VerticalAlignment="Top"
|
|
|
|
Margin="0,2,0,0"
|
|
|
|
Grid.Row="2"
|
|
|
|
Grid.ColumnSpan="3" Grid.Column="0" />
|
|
|
|
<Thumb x:Name="HorizontalThumb"
|
|
|
|
Style="{StaticResource SliderThumbStyle}"
|
|
|
|
DataContext="{TemplateBinding Value}"
|
|
|
|
Height="{ThemeResource SliderTrackThemeHeight}"
|
|
|
|
Width="{ThemeResource SliderTrackThemeHeight}"
|
|
|
|
Grid.Row="1"
|
|
|
|
Grid.Column="1"
|
|
|
|
AutomationProperties.AccessibilityView="Raw"/>
|
|
|
|
<Rectangle x:Name="HorizontalBorder"
|
|
|
|
Stroke="{TemplateBinding BorderBrush}"
|
|
|
|
StrokeThickness="{TemplateBinding BorderThickness}"
|
|
|
|
Grid.Row="1"
|
|
|
|
Grid.ColumnSpan="3" Grid.Column="0" />
|
|
|
|
<Rectangle x:Name="FocusVisualWhiteHorizontal"
|
|
|
|
IsHitTestVisible="False"
|
|
|
|
Stroke="{ThemeResource FocusVisualWhiteStrokeThemeBrush}"
|
|
|
|
StrokeEndLineCap="Square"
|
|
|
|
StrokeDashArray="1,1"
|
|
|
|
Opacity="0"
|
|
|
|
StrokeDashOffset="1.5"
|
|
|
|
Grid.Row="0" Grid.RowSpan="3"
|
|
|
|
Grid.ColumnSpan="3" Grid.Column="0" />
|
|
|
|
<Rectangle x:Name="FocusVisualBlackHorizontal"
|
|
|
|
IsHitTestVisible="False"
|
|
|
|
Stroke="{ThemeResource FocusVisualBlackStrokeThemeBrush}"
|
|
|
|
StrokeEndLineCap="Square"
|
|
|
|
StrokeDashArray="1,1"
|
|
|
|
Opacity="0"
|
|
|
|
StrokeDashOffset="0.5"
|
|
|
|
Grid.Row="0" Grid.RowSpan="3"
|
|
|
|
Grid.ColumnSpan="3" Grid.Column="0" />
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
<Grid x:Name="VerticalTemplate" Visibility="Collapsed">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="17" />
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition Width="17" />
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
<Rectangle x:Name="VerticalTrackRect"
|
|
|
|
Fill="{TemplateBinding Background}"
|
|
|
|
Grid.Column="1"
|
|
|
|
Grid.RowSpan="3" />
|
|
|
|
<Rectangle x:Name="VerticalDecreaseRect"
|
|
|
|
Fill="{TemplateBinding Foreground}"
|
|
|
|
Grid.Column="1"
|
|
|
|
Grid.Row="2" />
|
|
|
|
<TickBar x:Name="LeftTickBar"
|
|
|
|
Visibility="Collapsed"
|
|
|
|
Fill="{ThemeResource SliderTickmarkOutsideBackgroundThemeBrush}"
|
|
|
|
Width="{ThemeResource SliderOutsideTickBarThemeHeight}"
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
Margin="0,0,2,0"
|
|
|
|
Grid.Row="0" Grid.RowSpan="3" Grid.Column="0" />
|
|
|
|
<TickBar x:Name="VerticalInlineTickBar"
|
|
|
|
Visibility="Collapsed"
|
|
|
|
Fill="{ThemeResource SliderTickMarkInlineBackgroundThemeBrush}"
|
|
|
|
Width="{ThemeResource SliderTrackThemeHeight}"
|
|
|
|
Grid.Column="1"
|
|
|
|
Grid.Row="0" Grid.RowSpan="3" />
|
|
|
|
<TickBar x:Name="RightTickBar"
|
|
|
|
Visibility="Collapsed"
|
|
|
|
Fill="{ThemeResource SliderTickmarkOutsideBackgroundThemeBrush}"
|
|
|
|
Width="{ThemeResource SliderOutsideTickBarThemeHeight}"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
Margin="2,0,0,0"
|
|
|
|
Grid.Column="2"
|
|
|
|
Grid.Row="0" Grid.RowSpan="3" />
|
|
|
|
<Thumb x:Name="VerticalThumb"
|
|
|
|
Style="{StaticResource SliderThumbStyle}"
|
|
|
|
DataContext="{TemplateBinding Value}"
|
|
|
|
Width="{ThemeResource SliderTrackThemeHeight}"
|
|
|
|
Height="{ThemeResource SliderTrackThemeHeight}"
|
|
|
|
Grid.Row="1"
|
|
|
|
Grid.Column="1"
|
|
|
|
AutomationProperties.AccessibilityView="Raw"/>
|
|
|
|
<Rectangle x:Name="VerticalBorder"
|
|
|
|
Stroke="{TemplateBinding BorderBrush}"
|
|
|
|
StrokeThickness="{TemplateBinding BorderThickness}"
|
|
|
|
Grid.Column="1"
|
|
|
|
Grid.Row="0" Grid.RowSpan="3" />
|
|
|
|
<Rectangle x:Name="FocusVisualWhiteVertical"
|
|
|
|
IsHitTestVisible="False"
|
|
|
|
Stroke="{ThemeResource FocusVisualWhiteStrokeThemeBrush}"
|
|
|
|
StrokeEndLineCap="Square"
|
|
|
|
StrokeDashArray="1,1"
|
|
|
|
Opacity="0"
|
|
|
|
StrokeDashOffset="1.5"
|
|
|
|
Grid.Row="0" Grid.RowSpan="3"
|
|
|
|
Grid.ColumnSpan="3" Grid.Column="0" />
|
|
|
|
<Rectangle x:Name="FocusVisualBlackVertical"
|
|
|
|
IsHitTestVisible="False"
|
|
|
|
Stroke="{ThemeResource FocusVisualBlackStrokeThemeBrush}"
|
|
|
|
StrokeEndLineCap="Square"
|
|
|
|
StrokeDashArray="1,1"
|
|
|
|
Opacity="0"
|
|
|
|
StrokeDashOffset="0.5"
|
|
|
|
Grid.Row="0" Grid.RowSpan="3"
|
|
|
|
Grid.ColumnSpan="3" Grid.Column="0" />
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
2018-06-07 18:27:50 +02:00
|
|
|
</ResourceDictionary>
|