<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	    xmlns:animation="clr-namespace:Telerik.Windows.Controls.Animation;assembly=Telerik.Windows.Controls"
	    xmlns:telerikTransitions="clr-namespace:Telerik.Windows.Controls.TransitionEffects;assembly=Telerik.Windows.Controls"
	    xmlns:telerikChromes="clr-namespace:Telerik.Windows.Controls.Chromes;assembly=Telerik.Windows.Controls"
		xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
		xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
		xmlns:telerikPrimitives="clr-namespace:Telerik.Windows.Controls.Primitives;assembly=Telerik.Windows.Controls">
	
	<SolidColorBrush x:Key="DisabledBrush" Color="#99FFFFFF"></SolidColorBrush>
	<LinearGradientBrush x:Key="ProgressBarBorder" EndPoint="0.04,0.5" StartPoint="0.972,0.5">
		<GradientStop Color="#FF707070" Offset="0"/>
		<GradientStop Color="#FF707070" Offset="1"/>
		<GradientStop Color="#FFA3A3A3" Offset="0.5"/>
		<GradientStop Color="#FF707070" Offset="0.993"/>
	</LinearGradientBrush>
	<SolidColorBrush x:Key="ProgressBarBackground_Nomral" Color="#8C878787" />
	<RadialGradientBrush x:Key="ProgressBarBackground_Indeterminate" Center="0.5,-0.23" GradientOrigin="0.8,0.25" RadiusX="0.68" RadiusY="0.68">
		<GradientStop Color="#BFFFFFFF" Offset="0" />
		<GradientStop Color="#00FFFFFF" Offset="1" />
		<GradientStop Color="#21FFFFFF" Offset="0.65"/>
	</RadialGradientBrush>
	<SolidColorBrush x:Key="ProgressBarBackground_Loaded" Color="#FF789FC3" />
	
	<ControlTemplate x:Key="RadCoverFlowItemControlTemplate" TargetType="telerikNavigation:RadCoverFlowItem">
		<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
			<VisualStateManager.VisualStateGroups>
				<VisualStateGroup x:Name="CommonStates">
					<VisualState x:Name="Focused" />
					<VisualState x:Name="Disabled">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_DisabledBox" Storyboard.TargetProperty="Visibility" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Visible</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
					<VisualState x:Name="MouseOver" />
					<VisualState x:Name="Normal" />
				</VisualStateGroup>
				<VisualStateGroup x:Name="SelectionStates">
					<VisualState x:Name="Selected" />
					<VisualState x:Name="Unselected">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentElement" Storyboard.TargetProperty="IsHitTestVisible" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0" Value="False" />
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
				</VisualStateGroup>
				<VisualStateGroup x:Name="ContentStates">
					<VisualState x:Name="Loaded" />
					<VisualState x:Name="Loading">
						<Storyboard RepeatBehavior="Forever">
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="LoadingVisual" Storyboard.TargetProperty="Visibility" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
							</ObjectAnimationUsingKeyFrames>
							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" RepeatBehavior="Forever" Storyboard.TargetName="IndeterminateDonut" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(RotateTransform.Angle)">
								<SplineDoubleKeyFrame KeyTime="00:00:01" Value="360"/>
							</DoubleAnimationUsingKeyFrames>
							<DoubleAnimation To="0" Duration="0" Storyboard.TargetName="ContentElement" Storyboard.TargetProperty="Opacity" />
						</Storyboard>
					</VisualState>
					<VisualState x:Name="InvalidContent">
						<Storyboard Duration="0">
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ErrorElement" Storyboard.TargetProperty="Visibility">
								<DiscreteObjectKeyFrame Value="Visible" KeyTime="0" />
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
				</VisualStateGroup>
			</VisualStateManager.VisualStateGroups>

			<telerikPrimitives:LayoutTransformControl x:Name="layoutTransform">
				<Grid Background="Transparent">
					<ContentPresenter x:Name="ContentElement" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" />
					
					<Grid x:Name="LoadingVisual" Visibility="Collapsed">
                        <Path x:Name="IndeterminateBackgroundDonut" RenderTransformOrigin="0.5 0.5" Stroke="{StaticResource ProgressBarBorder}" Fill="{StaticResource ProgressBarBackground_Nomral}" Height="44" Width="44">
                            <Path.Data>
                                <GeometryGroup FillRule="EvenOdd">
                                    <EllipseGeometry Center="22 22" RadiusX="20.5" RadiusY="20.5" />
                                    <EllipseGeometry Center="22 22" RadiusX="14.5" RadiusY="14.5" />
                                </GeometryGroup>
                            </Path.Data>
                        </Path>
                        <Path x:Name="IndeterminateDonut" Fill="{StaticResource ProgressBarBackground_Indeterminate}" RenderTransformOrigin="0.5 0.5" Height="44" Width="44">
                            <Path.RenderTransform>
                                <TransformGroup>
                                    <RotateTransform/>
                                </TransformGroup>
                            </Path.RenderTransform>
                            <Path.Data>
                                <GeometryGroup FillRule="EvenOdd">
                                    <EllipseGeometry Center="22 22" RadiusX="20" RadiusY="20" />
                                    <EllipseGeometry Center="22 22" RadiusX="14" RadiusY="14" />
                                </GeometryGroup>
                            </Path.Data>
                        </Path>
                    </Grid>

					<Image x:Name="ErrorElement" Stretch="None" Visibility="Collapsed" Source="/Telerik.Windows.Controls.Navigation;component/images/CoverFlowError.png" HorizontalAlignment="Center" VerticalAlignment="Center" />
					<Rectangle x:Name="PART_DisabledBox" Fill="{StaticResource DisabledBrush}" Visibility="Collapsed" />
				</Grid>
			</telerikPrimitives:LayoutTransformControl>
		</Border>
	</ControlTemplate>
				
    <Style x:Key="RadCoverFlowItemStyle" TargetType="telerikNavigation:RadCoverFlowItem">
        <Setter Property="Template" Value="{StaticResource RadCoverFlowItemControlTemplate}" />
        <Setter Property="CacheMode">
            <Setter.Value>
                <BitmapCache />
            </Setter.Value>
        </Setter>
    </Style>
	<Style TargetType="telerikNavigation:RadCoverFlowItem" BasedOn="{StaticResource RadCoverFlowItemStyle}" />
	
	<ItemsPanelTemplate x:Key="CoverFlowItemsPanelTemplate">
		<telerikNavigation:CoverFlowPanel />
	</ItemsPanelTemplate>
	
	<ControlTemplate x:Key="RadCoverFlowControlTemplate" TargetType="telerikNavigation:RadCoverFlow">
		<Grid>
			<VisualStateManager.VisualStateGroups>
				<VisualStateGroup x:Name="CommonStateGroup">
					<VisualState x:Name="Disabled">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="DisabledBox" Storyboard.TargetProperty="Visibility" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
					<VisualState x:Name="Normal" />
				</VisualStateGroup>
			</VisualStateManager.VisualStateGroups>   
			<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
				<telerikPrimitives:LayoutTransformControl x:Name="layoutTransform">
					<ItemsPresenter Margin="{TemplateBinding Padding}" />
				</telerikPrimitives:LayoutTransformControl>
			</Border>			
			<Rectangle x:Name="DisabledBox" Fill="{StaticResource DisabledBrush}" Visibility="Collapsed" />
		</Grid>
	</ControlTemplate>
	
    <Style TargetType="telerikNavigation:RadCoverFlow">
        <Setter Property="Background" Value="Transparent" />
        <Setter Property="IsTabStop" Value="False" />
        <Setter Property="TabNavigation" Value="Once" />
        <Setter Property="ItemsPanel" Value="{StaticResource CoverFlowItemsPanelTemplate}" />
        <Setter Property="Template" Value="{StaticResource RadCoverFlowControlTemplate}" />
		<Setter Property="ItemContainerStyle" Value="{StaticResource RadCoverFlowItemStyle}" />
    </Style>

</ResourceDictionary>