<ResourceDictionary
		xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
		xmlns:telerikChromes="clr-namespace:Telerik.Windows.Controls.Chromes;assembly=Telerik.Windows.Controls"
		xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
		xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
		xmlns:sys="clr-namespace:System;assembly=mscorlib"
		mc:Ignorable="d">
	
	<telerik:Expression_DarkTheme x:Key="Theme" />
	
	<SolidColorBrush x:Key="TextBoxBorder_Disabled" Color="#FF5D5C5C" />
	<SolidColorBrush x:Key="PickerForeground" Color="#FFDDDDDD" />
	
	<SolidColorBrush x:Key="PickerBackground" Color="#FF333333" />
	<LinearGradientBrush x:Key="PickerBorder_Normal" EndPoint="1,0.5" StartPoint="0,0.5">
		<GradientStop Color="#FF707070" Offset="0"/>
		<GradientStop Color="#FFA3A3A3" Offset="0.5"/>
		<GradientStop Color="#FF707070" Offset="1"/>
	</LinearGradientBrush>
	
	<SolidColorBrush x:Key="ButtonBackground_Normal" Color="#FF575859"/>
	<LinearGradientBrush x:Key="ButtonBorder_Normal" EndPoint="1,0.5" StartPoint="0,0.5">
		<GradientStop Color="#FF707070" Offset="0"/>
		<GradientStop Color="#FFA3A3A3" Offset="0.5"/>
		<GradientStop Color="#FF707070" Offset="1"/>
	</LinearGradientBrush>
	
	<SolidColorBrush x:Key="ButtonBorder_Focus" Color="#FF789FC3"/>
	
	<SolidColorBrush x:Key="ButtonBackground_MouseOver" Color="#FF878787"/>
	<LinearGradientBrush x:Key="ButtonBorder_MouseOver" EndPoint="1,0.5" StartPoint="0,0.5">
		<GradientStop Color="#FFB0B0B0" Offset="0"/>
		<GradientStop Color="#FFB0B0B0" Offset="1"/>
		<GradientStop Color="#FFE0E1E2" Offset="0.5"/>
	</LinearGradientBrush>
	<LinearGradientBrush x:Key="ButtonBackground_Pressed" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FF2E2D2D" Offset="0"/>
		<GradientStop Color="#FF424242" Offset="1"/>
		<GradientStop Color="#FF424242" Offset="0.14"/>
	</LinearGradientBrush>
	<SolidColorBrush x:Key="ButtonBorder_Pressed" Color="#FF1A1A1A"/>

	<SolidColorBrush x:Key="ButtonBackground_Disabled" Color="#FF666666"/>
	<SolidColorBrush x:Key="ButtonBorder_Disabled" Color="#FF5D5C5C"/>
	
	<SolidColorBrush x:Key="Icon_Normal" Color="#FFC5C2C2"/>
	<SolidColorBrush x:Key="Icon_MouseOver" Color="#FF262626"/>
	<SolidColorBrush x:Key="Icon_Pressed" Color="#FFC5C2C2"/>
	<SolidColorBrush x:Key="Icon_Disabled" Color="#FF868686"/>
		
	<Style x:Key="IncreaseRepeatButtonStyle" TargetType="RepeatButton">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="RepeatButton">
					<Grid>
						<VisualStateManager.VisualStateGroups>
							<VisualStateGroup x:Name="CommonStates">
								<VisualState x:Name="Normal"/>
								<VisualState x:Name="MouseOver">
									<Storyboard>
										<DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Focus" d:IsOptimized="True"/>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background)" Storyboard.TargetName="Background">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonBackground_MouseOver}" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush)" Storyboard.TargetName="Background">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonBorder_MouseOver}" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Path.Fill)" Storyboard.TargetName="Icon">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource Icon_MouseOver}" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Pressed">
									<Storyboard>
										<DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Focus" d:IsOptimized="True"/>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background)" Storyboard.TargetName="Background">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonBackground_Pressed}" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush)" Storyboard.TargetName="Background">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonBorder_Pressed}" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Path.Fill)" Storyboard.TargetName="Icon">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource Icon_Pressed}" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Disabled">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background)" Storyboard.TargetName="Background">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonBackground_Disabled}" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush)" Storyboard.TargetName="Background">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonBorder_Disabled}" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Path.Fill)" Storyboard.TargetName="Icon">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource Icon_Disabled}" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
							</VisualStateGroup>
							<VisualStateGroup x:Name="FocusStates">
								<VisualState x:Name="Focused" >
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Focus">
											<DiscreteObjectKeyFrame KeyTime="0">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Visible</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Unfocused"/>
							</VisualStateGroup>
						</VisualStateManager.VisualStateGroups>
						<Border x:Name="Background" BorderBrush="{StaticResource ButtonBorder_Normal}" Background="{StaticResource ButtonBackground_Normal}" BorderThickness="1" CornerRadius="0 3 0 0" />
						<Border x:Name="Focus" BorderBrush="{StaticResource ButtonBorder_Focus}" BorderThickness="1" CornerRadius="0 3 0 0" Visibility="Collapsed" />
						<Path x:Name="Icon" Margin="3 4 3 3" Fill="{StaticResource Icon_Normal}" Width="8" Height="4" Data="M0,4 4,0 8,4 6,4 4,2 2,4Z" />
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<Style x:Key="DecreaseRepeatButtonStyle" TargetType="RepeatButton">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="RepeatButton">
					<Grid>
						<VisualStateManager.VisualStateGroups>
							<VisualStateGroup x:Name="CommonStates">
								<VisualState x:Name="Normal"/>
								<VisualState x:Name="MouseOver">
									<Storyboard>
										<DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Focus" d:IsOptimized="True"/>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background)" Storyboard.TargetName="Background">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonBackground_MouseOver}" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush)" Storyboard.TargetName="Background">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonBorder_MouseOver}" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Path.Fill)" Storyboard.TargetName="Icon">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource Icon_MouseOver}" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Pressed">
									<Storyboard>
										<DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Focus" d:IsOptimized="True"/>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background)" Storyboard.TargetName="Background">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonBackground_Pressed}" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush)" Storyboard.TargetName="Background">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonBorder_Pressed}" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Path.Fill)" Storyboard.TargetName="Icon">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource Icon_Pressed}" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Disabled">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background)" Storyboard.TargetName="Background">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonBackground_Disabled}" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush)" Storyboard.TargetName="Background">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonBorder_Disabled}" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Path.Fill)" Storyboard.TargetName="Icon">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource Icon_Disabled}" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
							</VisualStateGroup>
							<VisualStateGroup x:Name="FocusStates">
								<VisualState x:Name="Focused" >
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Focus">
											<DiscreteObjectKeyFrame KeyTime="0">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Visible</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Unfocused"/>
							</VisualStateGroup>
						</VisualStateManager.VisualStateGroups>
						<Border x:Name="Background" BorderBrush="{StaticResource ButtonBorder_Normal}" Background="{StaticResource ButtonBackground_Normal}" BorderThickness="1" CornerRadius="0 0 3 0" />
						<Border x:Name="Focus" BorderBrush="{StaticResource ButtonBorder_Focus}" BorderThickness="1" CornerRadius="0 0 3 0" Visibility="Collapsed" />
						<Path x:Name="Icon" Margin="3 3 3 4" Fill="{StaticResource Icon_Normal}" Width="8" Height="4" Data="M0,0 4,4 8,0 6,0 4,2 2,0Z" />
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<ControlTemplate x:Key="RadNumericUpDownTemplate" TargetType="telerik:RadNumericUpDown">
		<Grid x:Name="LayoutRoot">			
			<VisualStateManager.VisualStateGroups>
				<VisualStateGroup x:Name="CommonStates">
					<VisualState x:Name="Disabled">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="DisabledVisual" Storyboard.TargetProperty="(UIElement.Visibility)">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Visible</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
					<VisualState x:Name="Normal" />
					<VisualState x:Name="MouseOver" />
					<VisualState x:Name="MouseOverTextHidden" />
				</VisualStateGroup>
				<VisualStateGroup x:Name="TextBoxBehavior">
					<VisualState x:Name="ShowTextBox" />
					<VisualState x:Name="HideTextBox" >
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="textbox">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Collapsed</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Background">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Collapsed</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Grid.Column)" Storyboard.TargetName="increase">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<sys:Int32>0</sys:Int32>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Grid.Column)" Storyboard.TargetName="decrease">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<sys:Int32>0</sys:Int32>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
				</VisualStateGroup>
				<VisualStateGroup x:Name="ButtonsBehavior">
					<VisualState x:Name="ShowButtons" />
					<VisualState x:Name="HideButtons" >
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="increase">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Collapsed</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="decrease">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Collapsed</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
				</VisualStateGroup>
				<VisualStateGroup x:Name="ValidationStates">
					<VisualState x:Name="Valid" />
					<VisualState x:Name="InvalidUnfocused" >
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ValidationTooltip">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Visible</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
					<VisualState x:Name="InvalidFocused" >
						<Storyboard>
							<DoubleAnimation To="0" Duration="0:0:0" Storyboard.TargetName="Focus" Storyboard.TargetProperty="Opacity" />
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ValidationTooltip">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Visible</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(ValidationTooltip.IsOpen)" Storyboard.TargetName="ValidationTooltip">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<sys:Boolean>True</sys:Boolean>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
				</VisualStateGroup>
				<VisualStateGroup x:Name="FocusStates">
					<VisualState x:Name="Focused" >
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Focus">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Visible</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
					<VisualState x:Name="FocusedTextHidden" />
					<VisualState x:Name="Unfocused" />
				</VisualStateGroup>
			</VisualStateManager.VisualStateGroups>
			
			<Grid.RowDefinitions>
				<RowDefinition Height="*" />
				<RowDefinition Height="*" />
			</Grid.RowDefinitions>
			<Grid.ColumnDefinitions>
				<ColumnDefinition x:Name="TextColumn" Width="*" />
				<ColumnDefinition x:Name="ButtonsColumn" Width="Auto" />
			</Grid.ColumnDefinitions>
			
			<Border x:Name="Background" Grid.ColumnSpan="2" Grid.RowSpan="2" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" Background="{TemplateBinding Background}" CornerRadius="3" />
			<Border x:Name="DisabledVisual" Visibility="Collapsed" Grid.ColumnSpan="2" Grid.RowSpan="2" IsHitTestVisible="False" BorderBrush="{StaticResource TextBoxBorder_Disabled}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3" />

			<telerik:PickerTextBox x:Name="textbox" Grid.Row="0" Grid.RowSpan="2" Grid.Column="0" Padding="{TemplateBinding Padding}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" telerik:StyleManager.Theme="{StaticResource Theme}" />
			<RepeatButton x:Name="increase" Grid.Row="0" Grid.Column="1" IsTabStop="{TemplateBinding AreButtonsTabStops}" Style="{StaticResource IncreaseRepeatButtonStyle}" />
			<RepeatButton x:Name="decrease" Grid.Row="1" Grid.Column="1" IsTabStop="{TemplateBinding AreButtonsTabStops}" Style="{StaticResource DecreaseRepeatButtonStyle}" />
			<Border x:Name="Focus" Grid.RowSpan="2" Grid.ColumnSpan="2" CornerRadius="3" Visibility="Collapsed" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{StaticResource ButtonBorder_Focus}" />
			<telerikChromes:ValidationTooltip x:Name="ValidationTooltip" Visibility="Collapsed" Grid.RowSpan="2" Grid.ColumnSpan="2" telerik:StyleManager.Theme="{StaticResource Theme}" TooltipPlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}" TooltipContent="{Binding Path=(Validation.Errors), RelativeSource={RelativeSource TemplatedParent}}" />
		</Grid>
	</ControlTemplate>

	<Style TargetType="telerik:RadNumericUpDown">
		<Setter Property="Foreground" Value="{StaticResource PickerForeground}" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="Padding" Value="5 3" />
		<Setter Property="HorizontalContentAlignment" Value="Right" />
		<Setter Property="VerticalContentAlignment" Value="Center" />
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Background" Value="{StaticResource PickerBackground}"/>
		<Setter Property="BorderBrush" Value="{StaticResource PickerBorder_Normal}"/>
		<Setter Property="Template" Value="{StaticResource RadNumericUpDownTemplate}" />
	</Style>

</ResourceDictionary>
