<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:vistaCopy="clr-namespace:VistaThemeCopy"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
    xmlns:carousel="clr-namespace:Telerik.Windows.Controls.Carousel;assembly=Telerik.Windows.Controls.Navigation"
    xmlns:local="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation">

    <SolidColorBrush x:Key="Carousel_ButtonInnerBorder" Color="#FFFCFCFC" />
<SolidColorBrush x:Key="Carousel_ButtonContentShadow" Color="White" />
<SolidColorBrush x:Key="Carousel_ButtonContent" Color="Black" />
<SolidColorBrush x:Key="Carousel_ButtonOuterBorder_Over" Color="#FF3C7FB1" />
<SolidColorBrush x:Key="Carousel_ButtonInnerBorder_Over" Color="#FFE9F6FD" />
<LinearGradientBrush x:Key="Carousel_ButtonBackground_Over" EndPoint="0.504032258064516,0.00625" StartPoint="0.504032258064516,0.9">
		<GradientStop Color="#FF81C3E5" Offset="0"/>
		<GradientStop Color="#FF98D1EF" Offset="0.5"/>
		<GradientStop Color="#FFB4E0F7" Offset="0.5"/>
		<GradientStop Color="#FFBDE4F9" Offset="1"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="Carousel_ButtonOuterBorder_Pressed" Color="#FF2C628B" />
<SolidColorBrush x:Key="Carousel_ButtonInnerBorder_Pressed" Color="#FF9EB0BA" />
<LinearGradientBrush x:Key="Carousel_ButtonBackground_Pressed" StartPoint="0.5040359497070312,0.9" EndPoint="0.5040359497070312,0.00625">
		<LinearGradientBrush.GradientStops>
			<GradientStopCollection>
				<GradientStop Color="#FF6AB6DE" Offset="0" />
				<GradientStop Color="#FF82C2E4" Offset="0.5" />
				<GradientStop Color="#FF98D0ED" Offset="0.5" />
				<GradientStop Color="#FFA9DEFB" Offset="1" />
			</GradientStopCollection>
		</LinearGradientBrush.GradientStops>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="Carousel_ButtonBackground" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFD0D0D0" Offset="1"/>
		<GradientStop Color="#FFF2F2F2" Offset="0"/>
		<GradientStop Color="#FFDDDDDD" Offset="0.51"/>
		<GradientStop Color="#FFECECEC" Offset="0.507"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="Carousel_ButtonOuterBorder" Color="#FF898C95" />

	

	<ControlTemplate x:Key="CarouselScrollButtonTemplate" TargetType="{x:Type carousel:CarouselScrollButton}">

		<Border x:Name="ButtonOuterBorder" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" CornerRadius="1">
			<Border x:Name="ButtonInnerBorder" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{StaticResource Carousel_ButtonInnerBorder}" Background="{TemplateBinding Background}">				
				<Grid x:Name="Arrow" HorizontalAlignment="Center" VerticalAlignment="Center">
					<Path x:Name="ArrowBackground" Fill="{StaticResource Carousel_ButtonContentShadow}" Margin="0,1,0,0" Data="M0,0 L7,0 7,1 6,1 6,2 5,2 5,3 4,3 4,4 3,4 3,3 2,3 2,2 1,2 1,1 0,1 z" RenderTransformOrigin="0.5,0.5" SnapsToDevicePixels="True" >
						<Path.RenderTransform>
							<TransformGroup>
								<ScaleTransform ScaleX="1" ScaleY="1"/>
								<SkewTransform AngleX="0" AngleY="0"/>
								<RotateTransform Angle="0"/>
								<TranslateTransform/>
							</TransformGroup>
						</Path.RenderTransform>
					</Path>
					<Path x:Name="ArrowForeground" Fill="{StaticResource Carousel_ButtonContent}" Margin="0,0,0,1" Data="M0,0 L7,0 7,1 6,1 6,2 5,2 5,3 4,3 4,4 3,4 3,3 2,3 2,2 1,2 1,1 0,1 z" RenderTransformOrigin="0.5,0.5" SnapsToDevicePixels="True" >
						<Path.RenderTransform>
							<TransformGroup>
								<ScaleTransform ScaleX="1" ScaleY="1"/>
								<SkewTransform AngleX="0" AngleY="0"/>
								<RotateTransform Angle="0"/>
								<TranslateTransform/>
							</TransformGroup>
						</Path.RenderTransform>
					</Path>


				</Grid>
			</Border>
		</Border>

		<ControlTemplate.Triggers>
			<Trigger Property="IsMouseOver" Value="True">
				<Setter Property="BorderBrush" TargetName="ButtonOuterBorder" Value="{StaticResource Carousel_ButtonOuterBorder_Over}"/>
				<Setter Property="BorderBrush" TargetName="ButtonInnerBorder" Value="{StaticResource Carousel_ButtonInnerBorder_Over}"/>
				<Setter Property="Background" TargetName="ButtonInnerBorder" Value="{StaticResource Carousel_ButtonBackground_Over}"/>
			</Trigger>
			<Trigger Property="IsPressed" Value="True">
				<Setter Property="BorderBrush" TargetName="ButtonOuterBorder" Value="{StaticResource Carousel_ButtonOuterBorder_Pressed}"/>
				<Setter Property="BorderBrush" TargetName="ButtonInnerBorder" Value="{StaticResource Carousel_ButtonInnerBorder_Pressed}"/>
				<Setter Property="Background" TargetName="ButtonInnerBorder" Value="{StaticResource Carousel_ButtonBackground_Pressed}"/>
			</Trigger>
			
			<Trigger Property="CarouselScrollButtonType" Value="LineUp">
				<Setter TargetName="ArrowBackground" Property="Data" Value="M3,0L4,0 4,1.0000002 5,1.0000002 5,2.0000002 6,2.0000002 6,3.0000002 7,3.0000002 7,4.0000002 0,4.0000002 0,3.0000002 1,3.0000002 1,2.0000002 2,2.0000002 2,1.0000002 3,1.0000002z" />
				<Setter TargetName="ArrowForeground" Property="Data" Value="M3,0L4,0 4,1.0000002 5,1.0000002 5,2.0000002 6,2.0000002 6,3.0000002 7,3.0000002 7,4.0000002 0,4.0000002 0,3.0000002 1,3.0000002 1,2.0000002 2,2.0000002 2,1.0000002 3,1.0000002z" />
			</Trigger>
			<Trigger Property="CarouselScrollButtonType" Value="LineLeft">		
				<Setter TargetName="ArrowBackground" Property="Data" Value="M3,0L4,0 4,7 3,7 3,6 2,6 2,5 1,5 1,4 0,4 0,3 1,3 1,2 2,2 2,1 3,1z" />				
				<Setter TargetName="ArrowForeground" Property="Data" Value="M3,0L4,0 4,7 3,7 3,6 2,6 2,5 1,5 1,4 0,4 0,3 1,3 1,2 2,2 2,1 3,1z" />
				<Setter Property="Width" Value="30" />
				<Setter Property="Height" Value="18" />
			</Trigger>
			<Trigger Property="CarouselScrollButtonType" Value="LineRight">
				<Setter TargetName="ArrowBackground" Property="Data" Value="M0,0L1.0000001,0 1.0000001,1 2,1 2,2 3,2 3,3 4,3 4,4 3,4 3,5 2,5 2,6 1.0000001,6 1.0000001,7 0,7z" />
				<Setter TargetName="ArrowForeground" Property="Data" Value="M0,0L1.0000001,0 1.0000001,1 2,1 2,2 3,2 3,3 4,3 4,4 3,4 3,5 2,5 2,6 1.0000001,6 1.0000001,7 0,7z" />
				<Setter Property="Width" Value="30" />
				<Setter Property="Height" Value="18" />
			</Trigger>
			<Trigger Property="CarouselScrollButtonType" Value="PageUp">
				<Setter TargetName="ArrowBackground" Property="Data" Value="M3.0000001,5L4.0000001,5 4.0000001,6.0000002 5.0000001,6.0000002 5.0000001,7.0000002 6.0000001,7.0000002 6.0000001,8.0000002 7.0000001,8.0000002 7.0000001,9 0,9 0,8.0000002 1.0000001,8.0000002 1.0000001,7.0000002 2.0000001,7.0000002 2.0000001,6.0000002 3.0000001,6.0000002z M0,4.0000002L0,3.0000002 1.0000001,3.0000002 1.0000001,2.0000002 2.0000001,2.0000002 2.0000001,1.0000002 3.0000001,1.0000002 3.0000001,0 4.0000001,0 4.0000001,1.0000002 5.0000001,1.0000002 5.0000001,2.0000002 6.0000001,2.0000002 6.0000001,3.0000002 7.0000001,3.0000002 7.0000001,4.0000002" />
				<Setter TargetName="ArrowForeground" Property="Data" Value="M3.0000001,5L4.0000001,5 4.0000001,6.0000002 5.0000001,6.0000002 5.0000001,7.0000002 6.0000001,7.0000002 6.0000001,8.0000002 7.0000001,8.0000002 7.0000001,9 0,9 0,8.0000002 1.0000001,8.0000002 1.0000001,7.0000002 2.0000001,7.0000002 2.0000001,6.0000002 3.0000001,6.0000002z M0,4.0000002L0,3.0000002 1.0000001,3.0000002 1.0000001,2.0000002 2.0000001,2.0000002 2.0000001,1.0000002 3.0000001,1.0000002 3.0000001,0 4.0000001,0 4.0000001,1.0000002 5.0000001,1.0000002 5.0000001,2.0000002 6.0000001,2.0000002 6.0000001,3.0000002 7.0000001,3.0000002 7.0000001,4.0000002" />
			</Trigger>
			<Trigger Property="CarouselScrollButtonType" Value="PageDown">
				<Setter TargetName="ArrowBackground" Property="Data" Value="M0,5L7.0000001,5 7.0000001,6 6.0000001,6 6.0000001,7 5.0000001,7 5.0000001,8 4.0000001,8 4.0000001,9 3.0000001,9 3.0000001,8 2.0000001,8 2.0000001,7 1.0000001,7 1.0000001,6 0,6z M0,0L7.0000001,0 7.0000001,1 6.0000001,1 6.0000001,2 5.0000001,2 5.0000001,3 4.0000001,3 4.0000001,4 3.0000001,4 3.0000001,3 2.0000001,3 2.0000001,2 1.0000001,2 1.0000001,1 0,1z" />
				<Setter TargetName="ArrowForeground" Property="Data" Value="M0,5L7.0000001,5 7.0000001,6 6.0000001,6 6.0000001,7 5.0000001,7 5.0000001,8 4.0000001,8 4.0000001,9 3.0000001,9 3.0000001,8 2.0000001,8 2.0000001,7 1.0000001,7 1.0000001,6 0,6z M0,0L7.0000001,0 7.0000001,1 6.0000001,1 6.0000001,2 5.0000001,2 5.0000001,3 4.0000001,3 4.0000001,4 3.0000001,4 3.0000001,3 2.0000001,3 2.0000001,2 1.0000001,2 1.0000001,1 0,1z" />
			</Trigger>
			<Trigger Property="CarouselScrollButtonType" Value="PageLeft">
				<Setter TargetName="ArrowBackground" Property="Data" Value="M8,0L9,0 9,7.0000001 8,7.0000001 8,6.0000001 7,6.0000001 7,5.0000001 6,5.0000001 6,4.0000001 5,4.0000001 5,3.0000001 6,3.0000001 6,2.0000001 7,2.0000001 7,1.0000001 8,1.0000001z M3,0L4,0 4,7.0000001 3,7.0000001 3,6.0000001 2,6.0000001 2,5.0000001 1,5.0000001 1,4.0000001 0,4.0000001 0,3.0000001 1,3.0000001 1,2.0000001 2,2.0000001 2,1.0000001 3,1.0000001z" />
				<Setter TargetName="ArrowForeground" Property="Data" Value="M8,0L9,0 9,7.0000001 8,7.0000001 8,6.0000001 7,6.0000001 7,5.0000001 6,5.0000001 6,4.0000001 5,4.0000001 5,3.0000001 6,3.0000001 6,2.0000001 7,2.0000001 7,1.0000001 8,1.0000001z M3,0L4,0 4,7.0000001 3,7.0000001 3,6.0000001 2,6.0000001 2,5.0000001 1,5.0000001 1,4.0000001 0,4.0000001 0,3.0000001 1,3.0000001 1,2.0000001 2,2.0000001 2,1.0000001 3,1.0000001z" />
				<Setter Property="Width" Value="30" />
				<Setter Property="Height" Value="18" />
			</Trigger>
			<Trigger Property="CarouselScrollButtonType" Value="PageRight">
				<Setter TargetName="ArrowBackground" Property="Data" Value="M5,0L6.0000002,0 6.0000002,1.0000001 7,1.0000001 7,2.0000001 8,2.0000001 8,3.0000001 9,3.0000001 9,4.0000001 8,4.0000001 8,5.0000001 7,5.0000001 7,6.0000001 6.0000002,6.0000001 6.0000002,7.0000001 5,7.0000001z M0,0L1,0 1,1.0000001 2,1.0000001 2,2.0000001 3,2.0000001 3,3.0000001 4,3.0000001 4,4.0000001 3,4.0000001 3,5.0000001 2,5.0000001 2,6.0000001 1,6.0000001 1,7.0000001 0,7.0000001z" />
				<Setter TargetName="ArrowForeground" Property="Data" Value="M5,0L6.0000002,0 6.0000002,1.0000001 7,1.0000001 7,2.0000001 8,2.0000001 8,3.0000001 9,3.0000001 9,4.0000001 8,4.0000001 8,5.0000001 7,5.0000001 7,6.0000001 6.0000002,6.0000001 6.0000002,7.0000001 5,7.0000001z M0,0L1,0 1,1.0000001 2,1.0000001 2,2.0000001 3,2.0000001 3,3.0000001 4,3.0000001 4,4.0000001 3,4.0000001 3,5.0000001 2,5.0000001 2,6.0000001 1,6.0000001 1,7.0000001 0,7.0000001z" />
				<Setter Property="Width" Value="30" />
				<Setter Property="Height" Value="18" />
			</Trigger>
			
		</ControlTemplate.Triggers>
	</ControlTemplate>
	
	<Style x:Key="CarouselScrollButtonStyle" TargetType="{x:Type carousel:CarouselScrollButton}">
		<Setter Property="Background" Value="{StaticResource Carousel_ButtonBackground}" />
		<Setter Property="BorderBrush" Value="{StaticResource Carousel_ButtonOuterBorder}" />
		<Setter Property="BorderThickness" Value="1"/>
		<Setter Property="Height" Value="30" />
		<Setter Property="Width" Value="18" />
		<Setter Property="HorizontalContentAlignment" Value="Center"/>
		<Setter Property="VerticalContentAlignment" Value="Center"/>
		<Setter Property="Template" Value="{StaticResource CarouselScrollButtonTemplate}" />
	</Style>

	
	

	<!-- PANEL SCROLL VIEWER -->
	<ControlTemplate x:Key="CarouselVerticalScrollBarTemplate" TargetType="{x:Type ScrollBar}">
		<Grid SnapsToDevicePixels="true" x:Name="Bg" Background="Transparent" VerticalAlignment="Bottom">
			<Grid.RowDefinitions>
				<RowDefinition Height="{TemplateBinding Height}"/>
				<RowDefinition Height="{TemplateBinding Height}"/>
				<RowDefinition Height="{TemplateBinding Height}"/>
				<RowDefinition Height="{TemplateBinding Height}"/>
			</Grid.RowDefinitions>
			<carousel:CarouselScrollButton Margin="2" CarouselScrollButtonType="PageUp"  Grid.Row="0"  Command="{x:Static ScrollBar.PageUpCommand}" Style="{StaticResource CarouselScrollButtonStyle}" />
			<carousel:CarouselScrollButton Margin="2" CarouselScrollButtonType="LineUp"   Grid.Row="1" Command="{x:Static ScrollBar.LineUpCommand}" Style="{StaticResource CarouselScrollButtonStyle}" />
			<carousel:CarouselScrollButton Margin="2" CarouselScrollButtonType="LineDown"  Grid.Row="2"  Command="{x:Static ScrollBar.LineDownCommand}" Style="{StaticResource CarouselScrollButtonStyle}" />
			<carousel:CarouselScrollButton Margin="2" CarouselScrollButtonType="PageDown"   Grid.Row="3" Command="{x:Static ScrollBar.PageDownCommand}" Style="{StaticResource CarouselScrollButtonStyle}" />
		</Grid>
	</ControlTemplate>
	<Style x:Key="CarouselVerticalScrollBarStyle" TargetType="ScrollBar">
		<Setter Property="Width" Value="30"/>
		<Setter Property="MinWidth" Value="30"/>
		<Setter Property="Height" Value="Auto"/>
		<Setter Property="MinHeight" Value="30"/>
		<Setter Property="Background" Value="Transparent"/>
		<Setter Property="Template" Value="{StaticResource CarouselVerticalScrollBarTemplate}" />
	</Style>
	
	<ControlTemplate x:Key="CarouselHorizontalScrollBarTemplate" TargetType="{x:Type ScrollBar}">
		<Grid SnapsToDevicePixels="true" x:Name="Bg" Background="{TemplateBinding Background}" HorizontalAlignment="Right">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="{TemplateBinding Width}"/>
				<ColumnDefinition Width="{TemplateBinding Width}"/>
				<ColumnDefinition Width="{TemplateBinding Width}"/>
				<ColumnDefinition Width="{TemplateBinding Width}"/>
			</Grid.ColumnDefinitions>
			<carousel:CarouselScrollButton Margin="2" CarouselScrollButtonType="PageLeft" Grid.Column="0" Command="{x:Static ScrollBar.PageUpCommand}" Style="{StaticResource CarouselScrollButtonStyle}" />
			<carousel:CarouselScrollButton Margin="2" CarouselScrollButtonType="LineLeft" Grid.Column="1" Command="{x:Static ScrollBar.LineLeftCommand}" Style="{StaticResource CarouselScrollButtonStyle}" />
			<carousel:CarouselScrollButton Margin="2" CarouselScrollButtonType="LineRight" Grid.Column="2" Command="{x:Static ScrollBar.LineRightCommand}" Style="{StaticResource CarouselScrollButtonStyle}" />
			<carousel:CarouselScrollButton Margin="2" CarouselScrollButtonType="PageRight" Grid.Column="3" Command="{x:Static ScrollBar.PageDownCommand}" Style="{StaticResource CarouselScrollButtonStyle}" />
		</Grid>
	</ControlTemplate>
	<Style x:Key="CarouselHorizontalScrollBarStyle" TargetType="ScrollBar">
		<Setter Property="Width" Value="Auto"/>
		<Setter Property="MinWidth" Value="30"/>
		<Setter Property="Height" Value="30"/>
		<Setter Property="MinHeight" Value="30"/>
		<Setter Property="Background" Value="Transparent"/>
		<Setter Property="Template" Value="{StaticResource CarouselHorizontalScrollBarTemplate}" />
	</Style>
	
	<ControlTemplate x:Key="CarouselScrollViewerTemplate" TargetType="{x:Type local:CarouselScrollViewer}">
		<Grid x:Name="Grid" Background="{TemplateBinding Background}">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="*"/>
				<ColumnDefinition Width="Auto"/>
			</Grid.ColumnDefinitions>
			<Grid.RowDefinitions>
				<RowDefinition Height="*"/>
				<RowDefinition Height="Auto"/>
			</Grid.RowDefinitions>
			<ScrollContentPresenter Margin="{TemplateBinding Padding}" x:Name="PART_ScrollContentPresenter" Grid.Column="0" Grid.Row="0" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" CanContentScroll="{TemplateBinding CanContentScroll}" CanHorizontallyScroll="False" CanVerticallyScroll="False"/>
			<ScrollBar Style="{StaticResource CarouselVerticalScrollBarStyle}" Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}" Cursor="Arrow" x:Name="PART_VerticalScrollBar" Grid.Column="1" Grid.Row="0" ViewportSize="{TemplateBinding ViewportHeight}" Maximum="{TemplateBinding ScrollableHeight}" Minimum="0" Value="{Binding Path=VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" AutomationProperties.AutomationId="VerticalScrollBar"/>
			<ScrollBar Style="{StaticResource CarouselHorizontalScrollBarStyle}" Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}" Cursor="Arrow" x:Name="PART_HorizontalScrollBar" Grid.Column="0" Grid.Row="1" Orientation="Horizontal" ViewportSize="{TemplateBinding ViewportWidth}" Maximum="{TemplateBinding ScrollableWidth}" Minimum="0" Value="{Binding Path=HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" AutomationProperties.AutomationId="HorizontalScrollBar"/>
		</Grid>
	</ControlTemplate>
	
	
	
	
	<ItemsPanelTemplate x:Key="CarouselItemsControlItemPanelTemplate">
		<local:RadCarouselPanel x:Name="CarouselPanel" IsPathVisible="False"/>
	</ItemsPanelTemplate>

	<ControlTemplate x:Key="CarouselItemsControlTemplate" TargetType="{x:Type carousel:CarouselItemsControl}">
		
		<local:CarouselScrollViewer CanContentScroll="True" Template="{StaticResource CarouselScrollViewerTemplate}"
									HorizontalScrollBarVisibility="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type local:RadCarousel}}, Path=HorizontalScrollBarVisibility}" 
									VerticalScrollBarVisibility="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type local:RadCarousel}}, Path=VerticalScrollBarVisibility}">
			<ItemsPresenter x:Name="ItemsPresenter" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
		</local:CarouselScrollViewer>
		
	</ControlTemplate>

	<Style x:Key="{telerik:ThemeResourceKey ThemeType=vistaCopy:VistaThemeCopyTheme, ElementType=carousel:CarouselItemsControl}" TargetType="{x:Type carousel:CarouselItemsControl}">
		<Setter Property="Template" Value="{StaticResource CarouselItemsControlTemplate}" />
		<Setter Property="ItemTemplate">
			<Setter.Value>
				<DataTemplate>
					<local:CarouselItemContentPresenter/>
				</DataTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="ItemsPanel" Value="{StaticResource CarouselItemsControlItemPanelTemplate}" />
	</Style>
	
	

</ResourceDictionary>
