| <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"> |
| |
| |
| <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 x:Key="SliderThumb" TargetType="Thumb"> |
| <Style x:Key="SliderThumb" TargetType="Thumb"> |
| <Setter Property="Template"> |
| <Setter Property="Template"> |
| <Setter.Value> |
| <Setter.Value> |
| <ControlTemplate TargetType="Thumb"> |
| <ControlTemplate TargetType="Thumb"> |
| <Rectangle Width="{TemplateBinding Width}" Height="Auto" |
| <Rectangle Width="{TemplateBinding Width}" Height="Auto" |
| Fill="{TemplateBinding Foreground}" /> |
| Fill="{TemplateBinding Foreground}" /> |
| |
| |
| </ControlTemplate> |
| </ControlTemplate> |
| </Setter.Value> |
| </Setter.Value> |
| </Setter> |
| </Setter> |
| </Style> |
| </Style> |
| |
| |
| <Style TargetType="Slider"> |
| <Style TargetType="Slider"> |
| <Setter Property="Background" Value="Transparent" /> |
| <Setter Property="Background" Value="Transparent" /> |
| <Setter Property="FocusVisualStyle" Value="{x:Null}" /> |
| <Setter Property="FocusVisualStyle" Value="{x:Null}" /> |
| <Setter Property="SnapsToDevicePixels" Value="True" /> |
| <Setter Property="SnapsToDevicePixels" Value="True" /> |
| <Setter Property="Foreground" Value="{DynamicResource TextBrush}" /> |
| <Setter Property="Foreground" Value="{DynamicResource TextBrush}" /> |
| <Setter Property="HorizontalAlignment" Value="Stretch" /> |
| <Setter Property="HorizontalAlignment" Value="Stretch" /> |
| <Setter Property="Height" Value="38" /> |
| <Setter Property="Height" Value="38" /> |
| <Setter Property="Padding" Value="0" /> |
| <Setter Property="Padding" Value="0" /> |
| <Setter Property="Template"> |
| <Setter Property="Template"> |
| <Setter.Value> |
| <Setter.Value> |
| <ControlTemplate TargetType="Slider"> |
| <ControlTemplate TargetType="Slider"> |
| <Grid Background="{TemplateBinding Background}"> |
| <Grid Background="{TemplateBinding Background}"> |
| <Border Height="6" Background="{DynamicResource ControlBackgroundBrush}" /> |
| <Border Height="6" Background="{DynamicResource ControlBackgroundBrush}" /> |
| <Track Grid.Row="1" x:Name="PART_Track" Margin="0,3,0,3" > |
| <Track Grid.Row="1" x:Name="PART_Track" Margin="0,3,0,3" > |
| <Track.Thumb> |
| <Track.Thumb> |
| <Thumb Width="8" Foreground="{TemplateBinding Foreground}" |
| <Thumb Width="8" Foreground="{TemplateBinding Foreground}" |
. | Style="{StaticResource SliderThumb}"/> |
| Style="{DynamicResource SliderThumb}"/> |
| </Track.Thumb> |
| </Track.Thumb> |
| <Track.DecreaseRepeatButton> |
| <Track.DecreaseRepeatButton> |
. | <RepeatButton Style="{StaticResource SliderTrackButton}" |
| <RepeatButton Style="{DynamicResource SliderTrackButton}" |
| Command="Slider.DecreaseLarge" /> |
| Command="Slider.DecreaseLarge" /> |
| </Track.DecreaseRepeatButton> |
| </Track.DecreaseRepeatButton> |
| <Track.IncreaseRepeatButton> |
| <Track.IncreaseRepeatButton> |
. | <RepeatButton Style="{StaticResource SliderTrackButton}" |
| <RepeatButton Style="{DynamicResource SliderTrackButton}" |
| Command="Slider.IncreaseLarge" /> |
| Command="Slider.IncreaseLarge" /> |
| </Track.IncreaseRepeatButton> |
| </Track.IncreaseRepeatButton> |
| </Track> |
| </Track> |
| <Border x:Name="BorderFocus" Margin="-3" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" |
| <Border x:Name="BorderFocus" Margin="-3" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" |
| BorderBrush="{DynamicResource SelectionBrush}" |
| BorderBrush="{DynamicResource SelectionBrush}" |
| BorderThickness="3" Visibility="Hidden" /> |
| BorderThickness="3" Visibility="Hidden" /> |
| </Grid> |
| </Grid> |
| <ControlTemplate.Triggers> |
| <ControlTemplate.Triggers> |
| <Trigger Property="IsFocused" Value="True"> |
| <Trigger Property="IsFocused" Value="True"> |
| <Setter Property="Foreground" Value="{DynamicResource GlyphBrush}" /> |
| <Setter Property="Foreground" Value="{DynamicResource GlyphBrush}" /> |
| <Setter Property="Visibility" Value="Visible" TargetName="BorderFocus" /> |
| <Setter Property="Visibility" Value="Visible" TargetName="BorderFocus" /> |
| </Trigger> |
| </Trigger> |
| <Trigger Property="IsMouseOver" Value="True"> |
| <Trigger Property="IsMouseOver" Value="True"> |
| <Setter Property="Foreground" Value="{DynamicResource GlyphBrush}" /> |
| <Setter Property="Foreground" Value="{DynamicResource GlyphBrush}" /> |
| <Setter Property="Visibility" Value="Visible" TargetName="BorderFocus" /> |
| <Setter Property="Visibility" Value="Visible" TargetName="BorderFocus" /> |
| </Trigger> |
| </Trigger> |
| <Trigger Property="IsEnabled" Value="False"> |
| <Trigger Property="IsEnabled" Value="False"> |
. | <Setter Property="Opacity" Value="0.4" /> |
| <Setter Property="Opacity" Value="0.5" /> |
| </Trigger> |
| </Trigger> |
| </ControlTemplate.Triggers> |
| </ControlTemplate.Triggers> |
| </ControlTemplate> |
| </ControlTemplate> |
| </Setter.Value> |
| </Setter.Value> |
| </Setter> |
| </Setter> |
| </Style> |
| </Style> |
| |
| |
| <Style TargetType="SliderEx" BasedOn="{StaticResource {x:Type Slider}}"> |
| <Style TargetType="SliderEx" BasedOn="{StaticResource {x:Type Slider}}"> |
| </Style> |
| </Style> |
| </ResourceDictionary> |
| </ResourceDictionary> |