| <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="ScrollBarTrackButton" TargetType="{x:Type RepeatButton}"> |
| <Style x:Key="ScrollBarTrackButton" 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 ScrollBar}"> |
| <Style TargetType="{x:Type ScrollBar}"> |
| <Setter Property="Stylus.IsFlicksEnabled" Value="False" /> |
| <Setter Property="Stylus.IsFlicksEnabled" Value="False" /> |
| <Setter Property="Background" Value="{DynamicResource ControlBackgroundBrush}" /> |
| <Setter Property="Background" Value="{DynamicResource ControlBackgroundBrush}" /> |
| <Setter Property="Template"> |
| <Setter Property="Template"> |
| <Setter.Value> |
| <Setter.Value> |
| <ControlTemplate TargetType="{x:Type ScrollBar}"> |
| <ControlTemplate TargetType="{x:Type ScrollBar}"> |
| <Track x:Name="PART_Track" Orientation="Vertical" IsDirectionReversed="True" |
| <Track x:Name="PART_Track" Orientation="Vertical" IsDirectionReversed="True" |
| Width="17"> |
| Width="17"> |
| <Track.Resources> |
| <Track.Resources> |
| <sys:Double x:Key="{x:Static SystemParameters.VerticalScrollBarButtonHeightKey}">42</sys:Double> |
| <sys:Double x:Key="{x:Static SystemParameters.VerticalScrollBarButtonHeightKey}">42</sys:Double> |
| </Track.Resources> |
| </Track.Resources> |
| <Track.Thumb> |
| <Track.Thumb> |
. | <Thumb /> |
| <Thumb Width="8" /> |
| </Track.Thumb> |
| </Track.Thumb> |
| <Track.DecreaseRepeatButton> |
| <Track.DecreaseRepeatButton> |
| <RepeatButton Style="{DynamicResource ScrollBarTrackButton}" |
| <RepeatButton Style="{DynamicResource ScrollBarTrackButton}" |
| Command="ScrollBar.PageUpCommand" /> |
| Command="ScrollBar.PageUpCommand" /> |
| </Track.DecreaseRepeatButton> |
| </Track.DecreaseRepeatButton> |
| <Track.IncreaseRepeatButton> |
| <Track.IncreaseRepeatButton> |
| <RepeatButton Style="{DynamicResource ScrollBarTrackButton}" |
| <RepeatButton Style="{DynamicResource ScrollBarTrackButton}" |
| Command="ScrollBar.PageDownCommand" /> |
| Command="ScrollBar.PageDownCommand" /> |
| </Track.IncreaseRepeatButton> |
| </Track.IncreaseRepeatButton> |
| </Track> |
| </Track> |
| <ControlTemplate.Triggers> |
| <ControlTemplate.Triggers> |
| <Trigger Property="Orientation" Value="Horizontal"> |
| <Trigger Property="Orientation" Value="Horizontal"> |
| <Setter Property="LayoutTransform" TargetName="PART_Track"> |
| <Setter Property="LayoutTransform" TargetName="PART_Track"> |
| <Setter.Value> |
| <Setter.Value> |
| <RotateTransform Angle="-90" /> |
| <RotateTransform Angle="-90" /> |
| </Setter.Value> |
| </Setter.Value> |
| </Setter> |
| </Setter> |
| <Setter TargetName="PART_Track" Property="Orientation" Value="Vertical" /> |
| <Setter TargetName="PART_Track" Property="Orientation" Value="Vertical" /> |
| </Trigger> |
| </Trigger> |
| </ControlTemplate.Triggers> |
| </ControlTemplate.Triggers> |
| </ControlTemplate> |
| </ControlTemplate> |
| </Setter.Value> |
| </Setter.Value> |
| </Setter> |
| </Setter> |
| </Style> |
| </Style> |
| |
| |
| <Style TargetType="{x:Type ScrollViewer}" BasedOn="{StaticResource BaseStyle}"> |
| <Style TargetType="{x:Type ScrollViewer}" BasedOn="{StaticResource BaseStyle}"> |
| <Setter Property="Template"> |
| <Setter Property="Template"> |
| <Setter.Value> |
| <Setter.Value> |
| <ControlTemplate TargetType="{x:Type ScrollViewer}"> |
| <ControlTemplate TargetType="{x:Type ScrollViewer}"> |
| <Border BorderBrush="{TemplateBinding BorderBrush}" |
| <Border BorderBrush="{TemplateBinding BorderBrush}" |
| BorderThickness="{TemplateBinding BorderThickness}"> |
| BorderThickness="{TemplateBinding BorderThickness}"> |
| <Grid Background="{TemplateBinding Background}"> |
| <Grid Background="{TemplateBinding Background}"> |
| <Grid.ColumnDefinitions> |
| <Grid.ColumnDefinitions> |
| <ColumnDefinition Width="*" /> |
| <ColumnDefinition Width="*" /> |
| <ColumnDefinition Width="Auto" /> |
| <ColumnDefinition Width="Auto" /> |
| </Grid.ColumnDefinitions> |
| </Grid.ColumnDefinitions> |
| <Grid.RowDefinitions> |
| <Grid.RowDefinitions> |
| <RowDefinition Height="*" /> |
| <RowDefinition Height="*" /> |
| <RowDefinition Height="Auto" /> |
| <RowDefinition Height="Auto" /> |
| </Grid.RowDefinitions> |
| </Grid.RowDefinitions> |
| <ScrollContentPresenter Grid.Column="0" Grid.Row="0" |
| <ScrollContentPresenter Grid.Column="0" Grid.Row="0" |
| Margin="{TemplateBinding Padding}" Content="{TemplateBinding Content}" |
| Margin="{TemplateBinding Padding}" Content="{TemplateBinding Content}" |
| ContentTemplate="{TemplateBinding ContentTemplate}" |
| ContentTemplate="{TemplateBinding ContentTemplate}" |
| CanContentScroll="{TemplateBinding CanContentScroll}" /> |
| CanContentScroll="{TemplateBinding CanContentScroll}" /> |
| <Rectangle Grid.Column="1" Grid.Row="1" Fill="{DynamicResource ControlBackgroundBrush}" /> |
| <Rectangle Grid.Column="1" Grid.Row="1" Fill="{DynamicResource ControlBackgroundBrush}" /> |
| <ScrollBar x:Name="PART_HorizontalScrollBar" Grid.Column="0" Grid.Row="1" |
| <ScrollBar x:Name="PART_HorizontalScrollBar" Grid.Column="0" Grid.Row="1" |
| Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}" |
| Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}" |
| Value="{Binding Path=HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" |
| Value="{Binding Path=HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" |
| ViewportSize="{TemplateBinding ViewportWidth}" |
| ViewportSize="{TemplateBinding ViewportWidth}" |
| Minimum="0" Maximum="{TemplateBinding ScrollableWidth}" Orientation="Horizontal" |
| Minimum="0" Maximum="{TemplateBinding ScrollableWidth}" Orientation="Horizontal" |
| AutomationProperties.AutomationId="HorizontalScrollBar" /> |
| AutomationProperties.AutomationId="HorizontalScrollBar" /> |
| <ScrollBar x:Name="PART_VerticalScrollBar" Grid.Column="1" Grid.Row="0" |
| <ScrollBar x:Name="PART_VerticalScrollBar" Grid.Column="1" Grid.Row="0" |
| Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}" |
| Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}" |
| Value="{Binding Path=VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" |
| Value="{Binding Path=VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" |
| ViewportSize="{TemplateBinding ViewportHeight}" |
| ViewportSize="{TemplateBinding ViewportHeight}" |
| Minimum="0" Maximum="{TemplateBinding ScrollableHeight}" Orientation="Vertical" |
| Minimum="0" Maximum="{TemplateBinding ScrollableHeight}" Orientation="Vertical" |
| AutomationProperties.AutomationId="VerticalScrollBar" /> |
| AutomationProperties.AutomationId="VerticalScrollBar" /> |
| </Grid> |
| </Grid> |
| </Border> |
| </Border> |
| <ControlTemplate.Triggers> |
| <ControlTemplate.Triggers> |
| <Trigger SourceName="PART_VerticalScrollBar" Property="Visibility" Value="Visible"> |
| <Trigger SourceName="PART_VerticalScrollBar" Property="Visibility" Value="Visible"> |
| <Setter Property="IsTabStop" Value="True"/> |
| <Setter Property="IsTabStop" Value="True"/> |
| </Trigger> |
| </Trigger> |
| </ControlTemplate.Triggers> |
| </ControlTemplate.Triggers> |
| </ControlTemplate> |
| </ControlTemplate> |
| </Setter.Value> |
| </Setter.Value> |
| </Setter> |
| </Setter> |
| </Style> |
| </Style> |
| </ResourceDictionary> |
| </ResourceDictionary> |