| <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" |
| xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" |
| xmlns:sys="clr-namespace:System;assembly=mscorlib" |
| xmlns:sys="clr-namespace:System;assembly=mscorlib" |
| mc:Ignorable="d"> |
| mc:Ignorable="d"> |
| |
| |
| <Style x:Key="SliderTrackButton" TargetType="{x:Type RepeatButton}"> |
| <Style x:Key="SliderTrackButton" TargetType="{x:Type RepeatButton}"> |
| <Setter Property="SnapsToDevicePixels" Value="True" /> |
| <Setter Property="SnapsToDevicePixels" Value="True" /> |
| <Setter Property="OverridesDefaultStyle" Value="true" /> |
| <Setter Property="OverridesDefaultStyle" Value="true" /> |
| <Setter Property="IsTabStop" Value="False" /> |
| <Setter Property="IsTabStop" Value="False" /> |
| <Setter Property="Focusable" Value="False" /> |
| <Setter Property="Focusable" Value="False" /> |
| <Setter Property="Template"> |
| <Setter Property="Template"> |
| <Setter.Value> |
| <Setter.Value> |
| <ControlTemplate TargetType="{x:Type RepeatButton}"> |
| <ControlTemplate TargetType="{x:Type RepeatButton}"> |
| <Border Background="Transparent" /> |
| <Border Background="Transparent" /> |
| </ControlTemplate> |
| </ControlTemplate> |
| </Setter.Value> |
| </Setter.Value> |
| </Setter> |
| </Setter> |
| </Style> |
| </Style> |
| |
| |
| <Style TargetType="{x:Type Slider}" BasedOn="{StaticResource BaseStyle}"> |
| <Style TargetType="{x:Type Slider}" BasedOn="{StaticResource BaseStyle}"> |
| <Setter Property="SnapsToDevicePixels" Value="True" /> |
| <Setter Property="SnapsToDevicePixels" Value="True" /> |
| <Setter Property="Background" Value="{DynamicResource ControlBackgroundBrush}" /> |
| <Setter Property="Background" Value="{DynamicResource ControlBackgroundBrush}" /> |
| <Setter Property="BorderBrush" Value="{DynamicResource NormalBorderBrush}" /> |
| <Setter Property="BorderBrush" Value="{DynamicResource NormalBorderBrush}" /> |
| <Setter Property="Template"> |
| <Setter Property="Template"> |
| <Setter.Value> |
| <Setter.Value> |
| <ControlTemplate TargetType="{x:Type Slider}"> |
| <ControlTemplate TargetType="{x:Type Slider}"> |
| <Grid x:Name="GridRoot"> |
| <Grid x:Name="GridRoot"> |
| <Grid.RowDefinitions> |
| <Grid.RowDefinitions> |
| <RowDefinition Height="Auto" /> |
| <RowDefinition Height="Auto" /> |
| <RowDefinition Height="Auto" MinHeight="{TemplateBinding MinHeight}" /> |
| <RowDefinition Height="Auto" MinHeight="{TemplateBinding MinHeight}" /> |
| <RowDefinition Height="Auto" /> |
| <RowDefinition Height="Auto" /> |
| </Grid.RowDefinitions> |
| </Grid.RowDefinitions> |
| <TickBar x:Name="TopTick" Visibility="Collapsed" Height="4" Placement="Top" |
| <TickBar x:Name="TopTick" Visibility="Collapsed" Height="4" Placement="Top" |
| SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Fill="{DynamicResource GlyphBrush}" /> |
| SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Fill="{DynamicResource GlyphBrush}" /> |
| <Border x:Name="Border" Grid.Row="1" Margin="0" Height="6" CornerRadius="{DynamicResource ControlCornerRadius}" |
| <Border x:Name="Border" Grid.Row="1" Margin="0" Height="6" CornerRadius="{DynamicResource ControlCornerRadius}" |
| Background="{TemplateBinding Background}" BorderBrush="{DynamicResource NormalBorderBrush}" |
| Background="{TemplateBinding Background}" BorderBrush="{DynamicResource NormalBorderBrush}" |
| BorderThickness="{DynamicResource ControlBorderThickness}" /> |
| BorderThickness="{DynamicResource ControlBorderThickness}" /> |
. | <Track Grid.Row="1" x:Name="PART_Track"> |
| <Track Grid.Row="1" x:Name="PART_Track" Height="{TemplateBinding Height}"> |
| <Track.Thumb> |
| <Track.Thumb> |
. | <Thumb Width="25" /> |
| <Thumb Width="10" /> |
| </Track.Thumb> |
| </Track.Thumb> |
| <Track.DecreaseRepeatButton> |
| <Track.DecreaseRepeatButton> |
| <RepeatButton Style="{StaticResource SliderTrackButton}" |
| <RepeatButton Style="{StaticResource SliderTrackButton}" |
| Command="Slider.DecreaseLarge" /> |
| Command="Slider.DecreaseLarge" /> |
| </Track.DecreaseRepeatButton> |
| </Track.DecreaseRepeatButton> |
| <Track.IncreaseRepeatButton> |
| <Track.IncreaseRepeatButton> |
| <RepeatButton Style="{StaticResource SliderTrackButton}" |
| <RepeatButton Style="{StaticResource SliderTrackButton}" |
| Command="Slider.IncreaseLarge" /> |
| Command="Slider.IncreaseLarge" /> |
| </Track.IncreaseRepeatButton> |
| </Track.IncreaseRepeatButton> |
| </Track> |
| </Track> |
| <TickBar x:Name="BottomTick" Visibility="Collapsed" Grid.Row="2" Height="4" Placement="Bottom" |
| <TickBar x:Name="BottomTick" Visibility="Collapsed" Grid.Row="2" Height="4" Placement="Bottom" |
| SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Fill="{TemplateBinding Foreground}" /> |
| SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Fill="{TemplateBinding Foreground}" /> |
| </Grid> |
| </Grid> |
| <ControlTemplate.Triggers> |
| <ControlTemplate.Triggers> |
| <Trigger Property="IsFocused" Value="True"> |
| <Trigger Property="IsFocused" Value="True"> |
| <Setter TargetName="PART_Track" Property="FocusManager.FocusedElement" Value="{Binding ElementName=PART_Track}" /> |
| <Setter TargetName="PART_Track" Property="FocusManager.FocusedElement" Value="{Binding ElementName=PART_Track}" /> |
| </Trigger> |
| </Trigger> |
| <Trigger Property="TickPlacement" Value="TopLeft"> |
| <Trigger Property="TickPlacement" Value="TopLeft"> |
| <Setter Property="Visibility" Value="Visible" TargetName="TopTick" /> |
| <Setter Property="Visibility" Value="Visible" TargetName="TopTick" /> |
| </Trigger> |
| </Trigger> |
| <Trigger Property="TickPlacement" Value="BottomRight"> |
| <Trigger Property="TickPlacement" Value="BottomRight"> |
| <Setter Property="Visibility" Value="Visible" TargetName="BottomTick" /> |
| <Setter Property="Visibility" Value="Visible" TargetName="BottomTick" /> |
| </Trigger> |
| </Trigger> |
| <Trigger Property="TickPlacement" Value="Both"> |
| <Trigger Property="TickPlacement" Value="Both"> |
| <Setter Property="Visibility" Value="Visible" TargetName="TopTick" /> |
| <Setter Property="Visibility" Value="Visible" TargetName="TopTick" /> |
| <Setter Property="Visibility" Value="Visible" TargetName="BottomTick" /> |
| <Setter Property="Visibility" Value="Visible" TargetName="BottomTick" /> |
| </Trigger> |
| </Trigger> |
| <Trigger Property="Orientation" Value="Vertical"> |
| <Trigger Property="Orientation" Value="Vertical"> |
| <Setter Property="LayoutTransform" TargetName="GridRoot"> |
| <Setter Property="LayoutTransform" TargetName="GridRoot"> |
| <Setter.Value> |
| <Setter.Value> |
| <RotateTransform Angle="-90" /> |
| <RotateTransform Angle="-90" /> |
| </Setter.Value> |
| </Setter.Value> |
| </Setter> |
| </Setter> |
| <Setter TargetName="PART_Track" Property="Orientation" Value="Horizontal" /> |
| <Setter TargetName="PART_Track" Property="Orientation" Value="Horizontal" /> |
| </Trigger> |
| </Trigger> |
| </ControlTemplate.Triggers> |
| </ControlTemplate.Triggers> |
| </ControlTemplate> |
| </ControlTemplate> |
| </Setter.Value> |
| </Setter.Value> |
| </Setter> |
| </Setter> |
| </Style> |
| </Style> |
| </ResourceDictionary> |
| </ResourceDictionary> |