123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218 |
-
- <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="/Resources/Common/Colors.xaml"/>
- </ResourceDictionary.MergedDictionaries>
-
- <Style x:Key="ScrollBarLineButton"
- TargetType="{x:Type RepeatButton}">
- <Setter Property="SnapsToDevicePixels"
- Value="True" />
- <Setter Property="OverridesDefaultStyle"
- Value="true" />
- <Setter Property="Focusable"
- Value="false" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type RepeatButton}">
- <Border x:Name="Border"
- Margin="1"
- CornerRadius="2"
- BorderThickness="1">
- <Border.BorderBrush>
- <LinearGradientBrush StartPoint="0,0"
- EndPoint="0,1">
- <LinearGradientBrush.GradientStops>
- <GradientStopCollection>
- <GradientStop Color="{DynamicResource BorderMediumColor}"
- Offset="0.0" />
- <GradientStop Color="{DynamicResource BorderDarkColor}"
- Offset="1.0" />
- </GradientStopCollection>
- </LinearGradientBrush.GradientStops>
- </LinearGradientBrush>
- </Border.BorderBrush>
- <Border.Background>
- <LinearGradientBrush StartPoint="0,0"
- EndPoint="0,1">
- <LinearGradientBrush.GradientStops>
- <GradientStopCollection>
- <GradientStop Color="{DynamicResource ControlLightColor}"/>
- <GradientStop Color="{DynamicResource ControlMediumColor}"
- Offset="1.0" />
- </GradientStopCollection>
- </LinearGradientBrush.GradientStops>
- </LinearGradientBrush>
- </Border.Background>
- <VisualStateManager.VisualStateGroups>
- <VisualStateGroup x:Name="CommonStates">
- <VisualState x:Name="Normal" />
- <VisualState x:Name="MouseOver" />
- <VisualState x:Name="Pressed">
- <Storyboard>
- <ColorAnimationUsingKeyFrames Storyboard.TargetName="Border"
- Storyboard.TargetProperty="(Panel.Background).
- (GradientBrush.GradientStops)[1].(GradientStop.Color)">
- <EasingColorKeyFrame KeyTime="0"
- Value="Blue" />
- </ColorAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- <VisualState x:Name="Disabled">
- <Storyboard>
- <ColorAnimationUsingKeyFrames Storyboard.TargetName="Arrow"
- Storyboard.TargetProperty="(Shape.Fill).
- (SolidColorBrush.Color)">
- <EasingColorKeyFrame KeyTime="0"
- Value="Blue" />
- </ColorAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- </VisualStateGroup>
- </VisualStateManager.VisualStateGroups>
- <Path x:Name="Arrow"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Data="{Binding Content,
- RelativeSource={RelativeSource TemplatedParent}}" >
- <Path.Fill>
- <SolidColorBrush Color="{DynamicResource GlyphColor}"/>
- </Path.Fill>
- </Path>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="ScrollBarPageButton"
- TargetType="{x:Type RepeatButton}">
- <Setter Property="SnapsToDevicePixels"
- Value="True" />
- <Setter Property="OverridesDefaultStyle"
- Value="true" />
- <Setter Property="IsTabStop"
- Value="false" />
- <Setter Property="Focusable"
- Value="false" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type RepeatButton}">
- <Border Background="Transparent" />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="ScrollBarThumb"
- TargetType="{x:Type Thumb}">
- <Setter Property="SnapsToDevicePixels"
- Value="True" />
- <Setter Property="OverridesDefaultStyle"
- Value="true" />
- <Setter Property="IsTabStop"
- Value="false" />
- <Setter Property="Focusable"
- Value="false" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Thumb}">
- <Grid Background="#00FFFFFF" IsHitTestVisible="True" Margin="-10">
- <Border CornerRadius="3" Margin="10"
- Background="{StaticResource module-primary-color-brush}"
- BorderThickness="0" />
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <ControlTemplate x:Key="VerticalScrollBar"
- TargetType="{x:Type ScrollBar}">
- <Grid Background="#00FF0000" Margin="0,5,0,5">
- <Grid.RowDefinitions>
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Border Grid.RowSpan="3"
- CornerRadius="3"
- Background="#000000" />
- <Track x:Name="PART_Track"
- Grid.Row="1"
- IsDirectionReversed="true">
- <Track.DecreaseRepeatButton>
- <RepeatButton Style="{StaticResource ScrollBarPageButton}"
- Command="ScrollBar.PageUpCommand" />
- </Track.DecreaseRepeatButton>
- <Track.Thumb>
- <Thumb Style="{StaticResource ScrollBarThumb}">
- </Thumb>
- </Track.Thumb>
- <Track.IncreaseRepeatButton>
- <RepeatButton Style="{StaticResource ScrollBarPageButton}"
- Command="ScrollBar.PageDownCommand" />
- </Track.IncreaseRepeatButton>
- </Track>
- </Grid>
- </ControlTemplate>
- <ControlTemplate x:Key="HorizontalScrollBar"
- TargetType="{x:Type ScrollBar}">
- <Grid Background="#00FF0000" Margin="5,0,5,0">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Border Grid.ColumnSpan="3"
- CornerRadius="3"
- Background="#F0F0F0" />
- <Track x:Name="PART_Track"
- Grid.Column="1"
- IsDirectionReversed="False">
- <Track.DecreaseRepeatButton>
- <RepeatButton Style="{StaticResource ScrollBarPageButton}"
- Command="ScrollBar.PageLeftCommand" />
- </Track.DecreaseRepeatButton>
- <Track.Thumb>
- <Thumb Style="{StaticResource ScrollBarThumb}">
- </Thumb>
- </Track.Thumb>
- <Track.IncreaseRepeatButton>
- <RepeatButton Style="{StaticResource ScrollBarPageButton}"
- Command="ScrollBar.PageRightCommand" />
- </Track.IncreaseRepeatButton>
- </Track>
- </Grid>
- </ControlTemplate>
- <Style x:Key="{x:Type ScrollBar}"
- TargetType="{x:Type ScrollBar}">
- <Setter Property="SnapsToDevicePixels"
- Value="True" />
- <Setter Property="OverridesDefaultStyle"
- Value="true" />
- <Style.Triggers>
- <Trigger Property="Orientation"
- Value="Horizontal">
- <Setter Property="Width"
- Value="Auto" />
- <Setter Property="Height"
- Value="6" />
- <Setter Property="Template"
- Value="{StaticResource HorizontalScrollBar}" />
- </Trigger>
- <Trigger Property="Orientation"
- Value="Vertical">
- <Setter Property="Width"
- Value="6" />
- <Setter Property="Height"
- Value="Auto" />
- <Setter Property="Template"
- Value="{StaticResource VerticalScrollBar}" />
- </Trigger>
- </Style.Triggers>
- </Style>
- </ResourceDictionary>
|