<ResourceDictionary
		xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d">
	
	<SolidColorBrush x:Key="ScrollBarBackground" Color="#FF3D3D3D" />
	
	<SolidColorBrush x:Key="ScrollButton" Color="#FF808080" />
	<SolidColorBrush x:Key="ScrollButton_MouseOver" Color="#FFAAAAAA" />
	<SolidColorBrush x:Key="ScrollButton_Pressed" Color="#FFCDCDCD" />
	
	<ControlTemplate x:Key="ScrollThumbTemplate" TargetType="Thumb">
		<Border Background="Transparent">
			<VisualStateManager.VisualStateGroups>
				<VisualStateGroup x:Name="CommonStates">
					<VisualState x:Name="Disabled">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ButtonIcon" Storyboard.TargetProperty="Visibility">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Collapsed</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
					<VisualState x:Name="Normal"/>
					<VisualState x:Name="MouseOver">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ButtonIcon" Storyboard.TargetProperty="Background">
								<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ScrollButton_MouseOver}" />
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
					<VisualState x:Name="Pressed">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ButtonIcon" Storyboard.TargetProperty="Background">
								<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ScrollButton_MouseOver}" />
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
				</VisualStateGroup>
			</VisualStateManager.VisualStateGroups>
			<Border x:Name="ButtonIcon" CornerRadius="3" Margin="{TemplateBinding Padding}" Background="{StaticResource ScrollButton}" />
		</Border>
	</ControlTemplate>
	
	<ControlTemplate x:Key="LargeStepButtonTemplate" TargetType="RepeatButton">
		<Rectangle Fill="Transparent" />
	</ControlTemplate>
	
	<ControlTemplate x:Key="SmallStepButtonTemplate" TargetType="RepeatButton">
		<Border Background="Transparent">
			<VisualStateManager.VisualStateGroups>
				<VisualStateGroup x:Name="CommonStates">
					<VisualState x:Name="Normal"/>
					<VisualState x:Name="MouseOver">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ButtonIcon" Storyboard.TargetProperty="Fill">
								<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ScrollButton_MouseOver}" />
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
					<VisualState x:Name="Pressed">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ButtonIcon" Storyboard.TargetProperty="Fill">
								<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ScrollButton_MouseOver}" />
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
					<VisualState x:Name="Disabled">
						<Storyboard>
							<DoubleAnimation To="0.27" Duration="0" Storyboard.TargetName="ButtonIcon" Storyboard.TargetProperty="Opacity" />
						</Storyboard>
					</VisualState>
				</VisualStateGroup>
			</VisualStateManager.VisualStateGroups>
			<Path x:Name="ButtonIcon" Data="{TemplateBinding Content}" Fill="{StaticResource ScrollButton}" HorizontalAlignment="Center" VerticalAlignment="Center" Stretch="None" />
		</Border>
	</ControlTemplate>
	
	<ControlTemplate x:Key="ScrollBarControlTemplate" TargetType="ScrollBar">
		<Border BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}">
			<VisualStateManager.VisualStateGroups>
				<VisualStateGroup x:Name="CommonStates">
					<VisualState x:Name="Normal" />
					<VisualState x:Name="MouseOver" />
					<VisualState x:Name="Disabled" />
				</VisualStateGroup>
			</VisualStateManager.VisualStateGroups>
				
			<Grid>
				<Grid x:Name="HorizontalRoot">
					<Grid.ColumnDefinitions>
						<ColumnDefinition Width="Auto"/>
						<ColumnDefinition Width="Auto"/>
						<ColumnDefinition Width="Auto"/>
						<ColumnDefinition Width="*"/>
						<ColumnDefinition Width="Auto"/>
					</Grid.ColumnDefinitions>
					<RepeatButton x:Name="HorizontalSmallDecrease" Grid.Column="0" Content="M6,0 L0,3.5 6,7Z" Template="{StaticResource SmallStepButtonTemplate}" IsTabStop="False" Interval="50" Width="18"/>
					<RepeatButton x:Name="HorizontalLargeDecrease" Grid.Column="1" Template="{StaticResource LargeStepButtonTemplate}" IsTabStop="False" Interval="50" Width="0"/>
					<Thumb x:Name="HorizontalThumb" Grid.Column="2" Padding="0 6 0 5" Template="{StaticResource ScrollThumbTemplate}" MinWidth="18" Width="18"/>
					<RepeatButton x:Name="HorizontalLargeIncrease" Grid.Column="3" Template="{StaticResource LargeStepButtonTemplate}" IsTabStop="False" Interval="50" />
					<RepeatButton x:Name="HorizontalSmallIncrease" Grid.Column="4" Content="M0,0 L6,3.5 0,7Z" Template="{StaticResource SmallStepButtonTemplate}" IsTabStop="False" Interval="50" Width="18"/>
				</Grid>
				<Grid x:Name="VerticalRoot" Visibility="Collapsed">
					<Grid.RowDefinitions>
						<RowDefinition Height="Auto"/>
						<RowDefinition Height="Auto"/>
						<RowDefinition Height="Auto"/>
						<RowDefinition Height="*"/>
						<RowDefinition Height="Auto"/>
					</Grid.RowDefinitions>
					<RepeatButton x:Name="VerticalSmallDecrease" Grid.Row="0" Content="M0,6 L3.5,0 7,6Z" Template="{StaticResource SmallStepButtonTemplate}" Height="18" IsTabStop="False" Interval="50" />
					<RepeatButton x:Name="VerticalLargeDecrease" Grid.Row="1" Template="{StaticResource LargeStepButtonTemplate}" Height="0" IsTabStop="False" Interval="50" />
					<Thumb x:Name="VerticalThumb" Grid.Row="2" Padding="6 0 5 0" Template="{StaticResource ScrollThumbTemplate}" Height="18" MinHeight="18" />
					<RepeatButton x:Name="VerticalLargeIncrease" Grid.Row="3" Template="{StaticResource LargeStepButtonTemplate}" IsTabStop="False" Interval="50" />
					<RepeatButton x:Name="VerticalSmallIncrease" Grid.Row="4" Content="M0,0 L3.5,6 7,0Z" Template="{StaticResource SmallStepButtonTemplate}" Height="18" IsTabStop="False" Interval="50" />
				</Grid>
			</Grid>
		</Border>
	</ControlTemplate>
	
	<Style x:Key="ScrollBarStyle" TargetType="ScrollBar">
		<Setter Property="IsTabStop" Value="False"/>
		<Setter Property="Background" Value="{StaticResource ScrollBarBackground}" />
		<Setter Property="BorderThickness" Value="0" />
		<Setter Property="Template" Value="{StaticResource ScrollBarControlTemplate}" />
	</Style>

	<Style BasedOn="{StaticResource ScrollBarStyle}" TargetType="ScrollBar" />

	<ControlTemplate x:Key="ScrollViewerControlTemplate" TargetType="ScrollViewer">
		<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
			<Grid>
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="*"/>
					<ColumnDefinition Width="Auto"/>
				</Grid.ColumnDefinitions>
				<Grid.RowDefinitions>
					<RowDefinition Height="*"/>
					<RowDefinition Height="Auto"/>
				</Grid.RowDefinitions>
				<ScrollContentPresenter x:Name="ScrollContentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Margin="{TemplateBinding Padding}"/>
				<Rectangle Grid.Column="1" Fill="{StaticResource ScrollBarBackground}" Grid.Row="1"/>
				<ScrollBar x:Name="VerticalScrollBar" Grid.Column="1" IsTabStop="False" Maximum="{TemplateBinding ScrollableHeight}" Minimum="0" Orientation="Vertical" Grid.Row="0" Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}" Value="{TemplateBinding VerticalOffset}" ViewportSize="{TemplateBinding ViewportHeight}" Width="18" Style="{StaticResource ScrollBarStyle}"/>
				<ScrollBar x:Name="HorizontalScrollBar" Grid.Column="0" Height="18" IsTabStop="False" Maximum="{TemplateBinding ScrollableWidth}" Minimum="0" Orientation="Horizontal" Grid.Row="1" Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}" Value="{TemplateBinding HorizontalOffset}" ViewportSize="{TemplateBinding ViewportWidth}" Style="{StaticResource ScrollBarStyle}"/>
			</Grid>
		</Border>
	</ControlTemplate>
	
	<Style x:Key="ScrollViewerStyle" TargetType="ScrollViewer">
		<Setter Property="HorizontalContentAlignment" Value="Left"/>
		<Setter Property="VerticalContentAlignment" Value="Top"/>
		<Setter Property="VerticalScrollBarVisibility" Value="Visible"/>
		<Setter Property="Padding" Value="0"/>
		<Setter Property="BorderThickness" Value="0"/>
		<Setter Property="Template" Value="{StaticResource ScrollViewerControlTemplate}" />
	</Style>
	
	<Style BasedOn="{StaticResource ScrollViewerStyle}" TargetType="ScrollViewer" />

</ResourceDictionary>