<ResourceDictionary
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"
	xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
	xmlns:animation="clr-namespace:Telerik.Windows.Controls.Animation;assembly=Telerik.Windows.Controls"
	xmlns:animationNavigation="clr-namespace:Telerik.Windows.Controls.Animation;assembly=Telerik.Windows.Controls.Navigation"
	>

	<?BODY BEGIN?>
	<!-- ToggleButoonTemplates ================================================================ -->
	<ControlTemplate TargetType="ToggleButton" x:Key="ExpanderDownHeaderStyle">
		<Grid Background="Transparent">
			<?SILVERLIGHT BEGIN?>
			<VisualStateManager.VisualStateGroups>
				<VisualStateGroup x:Name="CommonStates">
					<VisualState x:Name="Normal" />
					<VisualState x:Name="MouseOver">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="circle"
									Storyboard.TargetProperty="Stroke" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0"
										Value="{StaticResource RadExpander_CircleStrokeOver}" />
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="circle"
									Storyboard.TargetProperty="Fill" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0"
										Value="{StaticResource RadExpander_ArrowHoverFill}" />
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="arrow"
									Storyboard.TargetProperty="Stroke" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0"
										Value="{StaticResource RadExpander_ElementStrokeOver}" />
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
					<VisualState x:Name="Pressed">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="circle"
									Storyboard.TargetProperty="Stroke" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0"
										Value="{StaticResource RadExpander_CircleStrokePressed}" />
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="circle"
									Storyboard.TargetProperty="StrokeThickness" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0" Value="1.5" />
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="circle"
									Storyboard.TargetProperty="Fill" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0"
										Value="{StaticResource RadExpander_ArrowPressedFill}" />
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="arrow"
									Storyboard.TargetProperty="Stroke" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0"
										Value="{StaticResource RadExpander_ElementStrokePressed}" />
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
					<VisualState x:Name="Disabled" />
				</VisualStateGroup>
				<VisualStateGroup x:Name="CheckStates">
					<VisualState x:Name="Checked">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="arrow"
									Storyboard.TargetProperty="Data" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0"
										Value="M 1,1.5 L 4.5,5 L 8,1.5" />
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
					<VisualState x:Name="Unchecked" />
				</VisualStateGroup>
				<VisualStateGroup x:Name="FocusStates">
					<VisualState x:Name="Focused">
						<Storyboard>
							<DoubleAnimation Storyboard.TargetProperty="Opacity"
									Storyboard.TargetName="FocusVisual" To="1" />
						</Storyboard>
					</VisualState>
					<VisualState x:Name="Unfocused" />
				</VisualStateGroup>
			</VisualStateManager.VisualStateGroups>
			<?SILVERLIGHT END?>
			<Border Padding="{TemplateBinding Padding}">
				<Grid Background="Transparent"
					  <?SILVERLIGHT BEGIN?>
					UseLayoutRounding="False"
					<?SILVERLIGHT END?>>
					<Grid.ColumnDefinitions>
						<ColumnDefinition Width="19" />
						<ColumnDefinition Width="*" />
					</Grid.ColumnDefinitions>
					<Ellipse x:Name="circle" Width="19" Height="19"
							Stroke="{StaticResource RadExpander_CircleStroke}"
							HorizontalAlignment="Center" VerticalAlignment="Center"
							Fill="{StaticResource RadExpander_ArrowFill}" />
					<Path x:Name="arrow" HorizontalAlignment="Center" VerticalAlignment="Center"
						Stroke="{StaticResource RadExpander_ElementStroke}" StrokeThickness="2"
						<?SILVERLIGHT BEGIN?>
						UseLayoutRounding="false"
						Data="M 1,4.5  L 4.5,1  L 8,4.5 "
						<?SILVERLIGHT END?>
						<?WPF BEGIN?>
						Data="M 1,1.5 L 4.5,5 L 8,1.5" 
						<?WPF END?>/>
					<ContentPresenter Grid.Column="1" Margin="4,0,0,0"
						VerticalAlignment="Center"
						<?SILVERLIGHT BEGIN?>
						UseLayoutRounding="True"
						<?SILVERLIGHT END?>/>
				</Grid>
			</Border>
			<Rectangle x:Name="FocusVisual" Stroke="{StaticResource FocusBrush}" Opacity="0"
					StrokeDashArray="1 2" StrokeThickness="1" />
		</Grid>
		<?WPF BEGIN?>
		<ControlTemplate.Triggers>
			<Trigger Property="IsChecked" Value="True">
				<Setter TargetName="arrow" Property="Data" Value="M 1,4.5  L 4.5,1  L 8,4.5 " />
			</Trigger>
			<Trigger Property="IsMouseOver" Value="true">
				<Setter TargetName="circle" Property="Stroke"
						Value="{StaticResource RadExpander_CircleStrokeOver}" />
				<Setter TargetName="circle" Property="Fill"
						Value="{StaticResource RadExpander_ArrowHoverFill}" />
				<Setter TargetName="arrow" Property="Stroke"
						Value="{StaticResource RadExpander_ElementStrokeOver}" />
			</Trigger>
			<Trigger Property="IsPressed" Value="True">
				<Setter TargetName="circle" Property="StrokeThickness" Value="1.5" />
				<Setter TargetName="circle" Property="Stroke"
						Value="{StaticResource RadExpander_CircleStrokePressed}" />
				<Setter TargetName="circle" Property="Fill"
						Value="{StaticResource RadExpander_ArrowPressedFill}" />
				<Setter TargetName="arrow" Property="Stroke"
						Value="{StaticResource RadExpander_ElementStrokePressed}" />
			</Trigger>
			<Trigger Property="IsFocused" Value="True">
				<Setter TargetName="FocusVisual" Property="Opacity" Value="1.0" />
			</Trigger>
		</ControlTemplate.Triggers>
		<?WPF END?>
	</ControlTemplate>
			
	<ControlTemplate TargetType="ToggleButton" x:Key="ExpanderUpHeaderStyle">
		<Grid Background="Transparent">
			<?SILVERLIGHT BEGIN?>
			<VisualStateManager.VisualStateGroups>
				<VisualStateGroup x:Name="CommonStates">
					<VisualState x:Name="Normal" />
					<VisualState x:Name="MouseOver">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="circle"
									Storyboard.TargetProperty="Stroke" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0"
										Value="{StaticResource RadExpander_CircleStrokeOver}" />
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="circle"
									Storyboard.TargetProperty="Fill" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0"
										Value="{StaticResource RadExpander_ArrowHoverFill}" />
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="arrow"
									Storyboard.TargetProperty="Stroke" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0"
										Value="{StaticResource RadExpander_ElementStrokeOver}" />
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
					<VisualState x:Name="Pressed">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="circle"
									Storyboard.TargetProperty="Stroke" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0"
										Value="{StaticResource RadExpander_CircleStrokePressed}" />
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="circle"
									Storyboard.TargetProperty="StrokeThickness" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0" Value="1.5" />
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="circle"
									Storyboard.TargetProperty="Fill" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0"
										Value="{StaticResource RadExpander_ArrowPressedFill}" />
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="arrow"
									Storyboard.TargetProperty="Stroke" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0"
										Value="{StaticResource RadExpander_ElementStrokePressed}" />
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
					<VisualState x:Name="Disabled" />
				</VisualStateGroup>
				<VisualStateGroup x:Name="CheckStates">
					<VisualState x:Name="Checked">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="arrow"
									Storyboard.TargetProperty="Data" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0"
										Value="M 1,1.5 L 4.5,5 L 8,1.5 " />
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
					<VisualState x:Name="Unchecked" />
				</VisualStateGroup>
				<VisualStateGroup x:Name="FocusStates">
					<VisualState x:Name="Focused">
						<Storyboard>
							<DoubleAnimation Storyboard.TargetProperty="Opacity"
									Storyboard.TargetName="FocusVisual" To="1" />
						</Storyboard>
					</VisualState>
					<VisualState x:Name="Unfocused" />
				</VisualStateGroup>
			</VisualStateManager.VisualStateGroups>
			<?SILVERLIGHT END?>
			<Border Padding="{TemplateBinding Padding}">
				<Grid Background="Transparent" 
					  <?SILVERLIGHT BEGIN?>
					UseLayoutRounding="False"
					<?SILVERLIGHT END?>>
					<Grid.ColumnDefinitions>
						<ColumnDefinition Width="19" />
						<ColumnDefinition Width="*" />
					</Grid.ColumnDefinitions>
					<Grid RenderTransformOrigin="0.5 0.5">
						<Grid.RenderTransform>
							<RotateTransform Angle="180" />
						</Grid.RenderTransform>
						<Ellipse x:Name="circle" Width="19" Height="19"
								Stroke="{StaticResource RadExpander_CircleStroke}"
								HorizontalAlignment="Center" VerticalAlignment="Center"
								Fill="{StaticResource RadExpander_ArrowFill}" />

						<Path x:Name="arrow" HorizontalAlignment="Center" VerticalAlignment="Center"
								Stroke="{StaticResource RadExpander_ElementStroke}"
								StrokeThickness="2"
							  <?SILVERLIGHT BEGIN?>
							Data="M 1,4.5  L 4.5,1  L 8,4.5" 
							UseLayoutRounding="false"
							<?SILVERLIGHT END?>
							<?WPF BEGIN?>	
							Data="M 1,1.5 L 4.5,5 L 8,1.5"
							<?WPF END?>/>
					</Grid>
					<ContentPresenter Grid.Column="1" Margin="4,0,0,0"
						VerticalAlignment="Center"
						<?SILVERLIGHT BEGIN?>
						UseLayoutRounding="True"
						<?SILVERLIGHT END?>/>
				</Grid>
			</Border>
			<Rectangle x:Name="FocusVisual" Stroke="{StaticResource FocusBrush}" Opacity="0"
					StrokeDashArray="1 2" StrokeThickness="1" />
		</Grid>
		<?WPF BEGIN?>
		<ControlTemplate.Triggers>
			<Trigger Property="IsChecked" Value="True">
				<Setter TargetName="arrow" Property="Data" Value="M 1,4.5  L 4.5,1  L 8,4.5" />
			</Trigger>
			<Trigger Property="IsMouseOver" Value="true">
				<Setter TargetName="circle" Property="Stroke"
						Value="{StaticResource RadExpander_CircleStrokeOver}" />
				<Setter TargetName="circle" Property="Fill"
						Value="{StaticResource RadExpander_ArrowHoverFill}" />
				<Setter TargetName="arrow" Property="Stroke"
						Value="{StaticResource RadExpander_ElementStrokeOver}" />
			</Trigger>
			<Trigger Property="IsPressed" Value="True">
				<Setter TargetName="circle" Property="StrokeThickness" Value="1.5" />
				<Setter TargetName="circle" Property="Stroke"
						Value="{StaticResource RadExpander_CircleStrokePressed}" />
				<Setter TargetName="circle" Property="Fill"
						Value="{StaticResource RadExpander_ArrowPressedFill}" />
				<Setter TargetName="arrow" Property="Stroke"
						Value="{StaticResource RadExpander_ElementStrokePressed}" />
			</Trigger>
			<Trigger Property="IsFocused" Value="True">
				<Setter TargetName="FocusVisual" Property="Opacity" Value="1.0" />
			</Trigger>
		</ControlTemplate.Triggers>
		<?WPF END?>
	</ControlTemplate>
			
	<ControlTemplate TargetType="ToggleButton" x:Key="ExpanderLeftHeaderStyle">
		<Grid Background="Transparent">
			<?SILVERLIGHT BEGIN?>
			<VisualStateManager.VisualStateGroups>
				<VisualStateGroup x:Name="CommonStates">
					<VisualState x:Name="Normal" />
					<VisualState x:Name="MouseOver">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="circle"
									Storyboard.TargetProperty="Stroke" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0"
										Value="{StaticResource RadExpander_CircleStrokeOver}" />
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="circle"
									Storyboard.TargetProperty="Fill" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0"
										Value="{StaticResource RadExpander_ArrowHoverFill}" />
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="arrow"
									Storyboard.TargetProperty="Stroke" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0"
										Value="{StaticResource RadExpander_ElementStrokeOver}" />
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
					<VisualState x:Name="Pressed">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="circle"
									Storyboard.TargetProperty="Stroke" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0"
										Value="{StaticResource RadExpander_CircleStrokePressed}" />
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="circle"
									Storyboard.TargetProperty="StrokeThickness" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0" Value="1.5" />
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="circle"
									Storyboard.TargetProperty="Fill" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0"
										Value="{StaticResource RadExpander_ArrowPressedFill}" />
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="arrow"
									Storyboard.TargetProperty="Stroke" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0"
										Value="{StaticResource RadExpander_ElementStrokePressed}" />
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
					<VisualState x:Name="Disabled" />
				</VisualStateGroup>
				<VisualStateGroup x:Name="CheckStates">
					<VisualState x:Name="Checked">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="arrow"
									Storyboard.TargetProperty="Data" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0"
										Value="M 1,1.5 L 4.5,5 L 8,1.5" />
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
					<VisualState x:Name="Unchecked" />
				</VisualStateGroup>
				<VisualStateGroup x:Name="FocusStates">
					<VisualState x:Name="Focused">
						<Storyboard>
							<DoubleAnimation Storyboard.TargetProperty="Opacity"
									Storyboard.TargetName="FocusVisual" To="1" />
						</Storyboard>
					</VisualState>
					<VisualState x:Name="Unfocused" />
				</VisualStateGroup>
			</VisualStateManager.VisualStateGroups>
			<?SILVERLIGHT END?>
			<Border Padding="{TemplateBinding Padding}">
				<Grid Background="Transparent" 
					  <?SILVERLIGHT BEGIN?>
					UseLayoutRounding="False"
					<?SILVERLIGHT END?>>
					<Grid.RowDefinitions>
						<RowDefinition Height="19" />
						<RowDefinition Height="*" />
					</Grid.RowDefinitions>
					<Grid RenderTransformOrigin="0.5 0.5">
						<Grid.RenderTransform>
							<RotateTransform Angle="90" />
						</Grid.RenderTransform>
						<Ellipse x:Name="circle" Width="19" Height="19"
								Stroke="{StaticResource RadExpander_CircleStroke}"
								HorizontalAlignment="Center" VerticalAlignment="Center"
								Fill="{StaticResource RadExpander_ArrowFill}" />
						<Path x:Name="arrow" HorizontalAlignment="Center" VerticalAlignment="Center"
								Stroke="{StaticResource RadExpander_ElementStroke}"
								StrokeThickness="2"
							  <?SILVERLIGHT BEGIN?>
							UseLayoutRounding="false"
							Data="M 1,4.5  L 4.5,1  L 8,4.5"
							<?SILVERLIGHT END?>
								<?WPF BEGIN?>
							Data="M 1,1.5 L 4.5,5 L 8,1.5" 
							<?WPF END?>/>
					</Grid>
					<ContentPresenter Grid.Row="1" Margin="0,4,0,0" HorizontalAlignment="Center"
						<?SILVERLIGHT BEGIN?>
						UseLayoutRounding="True"
						<?SILVERLIGHT END?>/>
				</Grid>
			</Border>
			<Rectangle x:Name="FocusVisual" Stroke="{StaticResource FocusBrush}"
					StrokeDashArray="1 2" StrokeThickness="1" Opacity="0" />
		</Grid>
		<?WPF BEGIN?>
		<ControlTemplate.Triggers>
			<Trigger Property="IsChecked" Value="True">
				<Setter TargetName="arrow" Property="Data" Value="M 1,4.5  L 4.5,1  L 8,4.5" />
			</Trigger>
			<Trigger Property="IsMouseOver" Value="true">
				<Setter TargetName="circle" Property="Stroke"
						Value="{StaticResource RadExpander_CircleStrokeOver}" />
				<Setter TargetName="circle" Property="Fill"
						Value="{StaticResource RadExpander_ArrowHoverFill}" />
				<Setter TargetName="arrow" Property="Stroke"
						Value="{StaticResource RadExpander_ElementStrokeOver}" />
			</Trigger>
			<Trigger Property="IsPressed" Value="True">
				<Setter TargetName="circle" Property="StrokeThickness" Value="1.5" />
				<Setter TargetName="circle" Property="Stroke"
						Value="{StaticResource RadExpander_CircleStrokePressed}" />
				<Setter TargetName="circle" Property="Fill"
						Value="{StaticResource RadExpander_ArrowPressedFill}" />
				<Setter TargetName="arrow" Property="Stroke"
						Value="{StaticResource RadExpander_ElementStrokePressed}" />
			</Trigger>
			<Trigger Property="IsFocused" Value="True">
				<Setter TargetName="FocusVisual" Property="Opacity" Value="1.0" />
			</Trigger>
		</ControlTemplate.Triggers>
		<?WPF END?>
	</ControlTemplate>
			
	<ControlTemplate TargetType="ToggleButton" x:Key="ExpanderRightHeaderStyle">
		<Grid Background="Transparent">
			<?SILVERLIGHT BEGIN?>
			<VisualStateManager.VisualStateGroups>
				<VisualStateGroup x:Name="CommonStates">
					<VisualState x:Name="Normal" />
					<VisualState x:Name="MouseOver">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="circle"
									Storyboard.TargetProperty="Stroke" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0"
										Value="{StaticResource RadExpander_CircleStrokeOver}" />
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="circle"
									Storyboard.TargetProperty="Fill" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0"
										Value="{StaticResource RadExpander_ArrowHoverFill}" />
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="arrow"
									Storyboard.TargetProperty="Stroke" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0"
										Value="{StaticResource RadExpander_ElementStrokeOver}" />
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
					<VisualState x:Name="Pressed">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="circle"
									Storyboard.TargetProperty="Stroke" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0"
										Value="{StaticResource RadExpander_CircleStrokePressed}" />
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="circle"
									Storyboard.TargetProperty="StrokeThickness" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0" Value="1.5" />
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="circle"
									Storyboard.TargetProperty="Fill" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0"
										Value="{StaticResource RadExpander_ArrowPressedFill}" />
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="arrow"
									Storyboard.TargetProperty="Stroke" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0"
										Value="{StaticResource RadExpander_ElementStrokePressed}" />
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
					<VisualState x:Name="Disabled" />
				</VisualStateGroup>
				<VisualStateGroup x:Name="CheckStates">
					<VisualState x:Name="Checked">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="arrow"
									Storyboard.TargetProperty="Data" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0"
										Value="M 1,1.5 L 4.5,5 L 8,1.5" />
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</VisualState>
					<VisualState x:Name="Unchecked" />
				</VisualStateGroup>
				<VisualStateGroup x:Name="FocusStates">
					<VisualState x:Name="Focused">
						<Storyboard>
							<DoubleAnimation Storyboard.TargetProperty="Opacity"
									Storyboard.TargetName="FocusVisual" To="1" />
						</Storyboard>
					</VisualState>
					<VisualState x:Name="Unfocused" />
				</VisualStateGroup>
			</VisualStateManager.VisualStateGroups>
			<?SILVERLIGHT END?>
			<Border Padding="{TemplateBinding Padding}">
				<Grid Background="Transparent" 
					  <?SILVERLIGHT BEGIN?>
					UseLayoutRounding="False"
					<?SILVERLIGHT END?>>
					<Grid.RowDefinitions>
						<RowDefinition Height="19" />
						<RowDefinition Height="*" />
					</Grid.RowDefinitions>
					<Grid RenderTransformOrigin="0.5 0.5">
						<Grid.RenderTransform>
							<RotateTransform Angle="-90" />
						</Grid.RenderTransform>
						<Ellipse x:Name="circle" Width="19" Height="19"
								Stroke="{StaticResource RadExpander_CircleStroke}"
								HorizontalAlignment="Center" VerticalAlignment="Center"
								Fill="{StaticResource RadExpander_ArrowFill}" />
						<Path x:Name="arrow" HorizontalAlignment="Center" VerticalAlignment="Center"
								Stroke="{StaticResource RadExpander_ElementStroke}"
								StrokeThickness="2" 
							  <?SILVERLIGHT BEGIN?>
							UseLayoutRounding="false"
							Data="M 1,4.5  L 4.5,1  L 8,4.5"
							<?SILVERLIGHT END?>
								
							<?WPF BEGIN?>
							Data="M 1,1.5 L 4.5,5 L 8,1.5"
							<?WPF END?> />
					</Grid>
					<ContentPresenter Grid.Row="1" Margin="0,4,0,0" HorizontalAlignment="Center"
						<?SILVERLIGHT BEGIN?>
						UseLayoutRounding="True"
						<?SILVERLIGHT END?>/>
				</Grid>
			</Border>
			<Rectangle x:Name="FocusVisual" Stroke="{StaticResource FocusBrush}"
					StrokeDashArray="1 2" StrokeThickness="1" Opacity="0" />
		</Grid>
		<?WPF BEGIN?>
		<ControlTemplate.Triggers>
			<Trigger Property="IsChecked" Value="True">
				<Setter TargetName="arrow" Property="Data" Value="M 1,4.5  L 4.5,1  L 8,4.5" />
			</Trigger>
			<Trigger Property="IsMouseOver" Value="true">
				<Setter TargetName="circle" Property="Stroke"
						Value="{StaticResource RadExpander_CircleStrokeOver}" />
				<Setter TargetName="circle" Property="Fill"
						Value="{StaticResource RadExpander_ArrowHoverFill}" />
				<Setter TargetName="arrow" Property="Stroke"
						Value="{StaticResource RadExpander_ElementStrokeOver}" />
			</Trigger>
			<Trigger Property="IsPressed" Value="True">
				<Setter TargetName="circle" Property="StrokeThickness" Value="1.5" />
				<Setter TargetName="circle" Property="Stroke"
						Value="{StaticResource RadExpander_CircleStrokePressed}" />
				<Setter TargetName="circle" Property="Fill"
						Value="{StaticResource RadExpander_ArrowPressedFill}" />
				<Setter TargetName="arrow" Property="Stroke"
						Value="{StaticResource RadExpander_ElementStrokePressed}" />
			</Trigger>
			<Trigger Property="IsFocused" Value="True">
				<Setter TargetName="FocusVisual" Property="Opacity" Value="1.0" />
			</Trigger>
		</ControlTemplate.Triggers>
		<?WPF END?>
	</ControlTemplate>

	<!-- DOWN ======================================================================= -->
	<ControlTemplate TargetType="telerik:RadExpander" x:Key="ExpanderDownTemplate">
		<Grid Background="Transparent">
			<?SILVERLIGHT BEGIN?>
			<vsm:VisualStateManager.VisualStateGroups>
				<vsm:VisualStateGroup x:Name="CommonStateGroup">
					<vsm:VisualState x:Name="Normal" />
					<vsm:VisualState x:Name="Disabled">
						<Storyboard>
							<DoubleAnimation Storyboard.TargetProperty="Opacity"
									Storyboard.TargetName="HeaderButton" To="0.5" Duration="0:0:0.2" />
						</Storyboard>
					</vsm:VisualState>
				</vsm:VisualStateGroup>
				<vsm:VisualStateGroup x:Name="ExpandStateGroup">
					<VisualState x:Name="Expanded">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentElement"
									Storyboard.TargetProperty="Visibility">
								<DiscreteObjectKeyFrame KeyTime="0:0:0.1">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Visible</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
							<DoubleAnimation Storyboard.TargetProperty="Opacity"
									Storyboard.TargetName="ContentElement" To="1" Duration="0:0:0.2" />
						</Storyboard>
					</VisualState>
					<vsm:VisualState x:Name="Collapsed">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentElement"
									Storyboard.TargetProperty="Visibility">
								<DiscreteObjectKeyFrame KeyTime="0:0:0.1">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Collapsed</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
							<DoubleAnimation Storyboard.TargetProperty="Opacity"
									Storyboard.TargetName="ContentElement" To="0.5"
									Duration="0:0:0.1" />
						</Storyboard>
					</vsm:VisualState>
				</vsm:VisualStateGroup>
			</vsm:VisualStateManager.VisualStateGroups>
			<?SILVERLIGHT END?>
			<Grid>
				<!--Background -->
				<Border BorderBrush="{TemplateBinding BorderBrush}"
					BorderThickness="{TemplateBinding BorderThickness}"
					Background="{TemplateBinding Background}" CornerRadius="3"
					<?SILVERLIGHT BEGIN?>
					UseLayoutRounding="true"
					<?SILVERLIGHT END?>>
					<Grid>
						<Grid.RowDefinitions>
							<RowDefinition Height="Auto" />
							<RowDefinition Height="*" />
						</Grid.RowDefinitions>
						<!-- Header DOWN ================================================== -->
						<Grid x:Name="HeaderElement" Background="Transparent">
							<ToggleButton
								x:Name="HeaderButton"
								Margin="1" MinWidth="0" MinHeight="0"
								Template="{StaticResource ExpanderDownHeaderStyle}"
								Content="{TemplateBinding Header}"
								ContentTemplate="{TemplateBinding HeaderTemplate}"
								IsEnabled="{TemplateBinding IsEnabled}"
								<?SILVERLIGHT BEGIN?>
								IsChecked="{TemplateBinding IsExpanded}"
								<?SILVERLIGHT END?>
								<?WPF BEGIN?>
								IsChecked="{Binding Path=IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
								ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}"
								<?WPF END?> />
						</Grid>
						<!-- Content DOWN ================================================= -->
						<Grid
							x:Name="ContentElement" Grid.Row="1" Visibility="Collapsed"
							HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
							VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
							<ContentPresenter x:Name="Content"
								Content="{TemplateBinding Content}"
								ContentTemplate="{TemplateBinding ContentTemplate}"
								HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
								VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
								Cursor="{TemplateBinding Cursor}" Margin="{TemplateBinding Padding}" />
						</Grid>
					</Grid>
				</Border>
			</Grid>
		</Grid>
		<?WPF BEGIN?>
		<ControlTemplate.Triggers>
			<Trigger Property="IsExpanded" Value="True">
				<Trigger.EnterActions>
					<BeginStoryboard>
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentElement"
									Storyboard.TargetProperty="Visibility" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Visible</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
							<DoubleAnimation Storyboard.TargetName="ContentElement"
									Storyboard.TargetProperty="Opacity" To="1.0" Duration="0:0:0.2" />
						</Storyboard>
					</BeginStoryboard>
				</Trigger.EnterActions>
				<Trigger.ExitActions>
					<BeginStoryboard>
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentElement"
									Storyboard.TargetProperty="Visibility" Duration="0:0:0.2">
								<DiscreteObjectKeyFrame KeyTime="0:0:0.2">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Collapsed</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
							<DoubleAnimation Storyboard.TargetName="ContentElement"
									Storyboard.TargetProperty="Opacity" To="0.0" Duration="0:0:0.2" />
						</Storyboard>
					</BeginStoryboard>
				</Trigger.ExitActions>
			</Trigger>
			<Trigger Property="IsEnabled" Value="True">
				<Trigger.EnterActions>
					<BeginStoryboard>
						<Storyboard>
							<DoubleAnimation Storyboard.TargetName="HeaderElement"
									Storyboard.TargetProperty="Opacity" To="1.0" Duration="0:0:0.2" />
						</Storyboard>
					</BeginStoryboard>
				</Trigger.EnterActions>
				<Trigger.ExitActions>
					<BeginStoryboard>
						<Storyboard>
							<DoubleAnimation Storyboard.TargetName="HeaderElement"
									Storyboard.TargetProperty="Opacity" To="0.5" Duration="0:0:0.2" />
						</Storyboard>
					</BeginStoryboard>
				</Trigger.ExitActions>
			</Trigger>
		</ControlTemplate.Triggers>
		<?WPF END?>
	</ControlTemplate>

	<!-- UP ========================================================================= -->
	<ControlTemplate TargetType="telerik:RadExpander" x:Key="ExpanderUpTemplate">
		<Grid x:Name="RootElement" Background="Transparent">
			<?SILVERLIGHT BEGIN?>
			<vsm:VisualStateManager.VisualStateGroups>
				<vsm:VisualStateGroup x:Name="CommonStateGroup">
					<vsm:VisualState x:Name="Normal" />
					<vsm:VisualState x:Name="Disabled">
						<Storyboard>
							<DoubleAnimation Storyboard.TargetProperty="Opacity"
									Storyboard.TargetName="HeaderButton" To="0.5" Duration="0:0:0.2" />
						</Storyboard>
					</vsm:VisualState>
				</vsm:VisualStateGroup>
				<vsm:VisualStateGroup x:Name="ExpandStateGroup">
					<VisualState x:Name="Expanded">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentElement"
									Storyboard.TargetProperty="Visibility">
								<DiscreteObjectKeyFrame KeyTime="0:0:0.1">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Visible</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
							<DoubleAnimation Storyboard.TargetProperty="Opacity"
									Storyboard.TargetName="ContentElement" To="1" Duration="0:0:0.2" />
						</Storyboard>
					</VisualState>
					<vsm:VisualState x:Name="Collapsed">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentElement"
									Storyboard.TargetProperty="Visibility">
								<DiscreteObjectKeyFrame KeyTime="0:0:0.1">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Collapsed</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
							<DoubleAnimation Storyboard.TargetProperty="Opacity"
									Storyboard.TargetName="ContentElement" To="0.5"
									Duration="0:0:0.1" />
						</Storyboard>
					</vsm:VisualState>
				</vsm:VisualStateGroup>
			</vsm:VisualStateManager.VisualStateGroups>
			<?SILVERLIGHT END?>
			<Grid>
				<!--Background -->
				<Border BorderBrush="{TemplateBinding BorderBrush}"
					BorderThickness="{TemplateBinding BorderThickness}"
					Background="{TemplateBinding Background}" CornerRadius="3"
					<?SILVERLIGHT BEGIN?>
					UseLayoutRounding="true"
					<?SILVERLIGHT END?>>
					<Grid>
						<Grid.RowDefinitions>
							<RowDefinition Height="*" />
							<RowDefinition Height="Auto" />
						</Grid.RowDefinitions>
						<!-- Header UP ==================================================== -->
						<Grid x:Name="HeaderElement" Grid.Row="1" Background="Transparent">
							<ToggleButton
								x:Name="HeaderButton"
								Margin="1" MinWidth="0" MinHeight="0"
								Template="{StaticResource ExpanderUpHeaderStyle}"
								Content="{TemplateBinding Header}"
								ContentTemplate="{TemplateBinding HeaderTemplate}"
								IsEnabled="{TemplateBinding IsEnabled}"
								<?SILVERLIGHT BEGIN?>
								IsChecked="{TemplateBinding IsExpanded}"
								<?SILVERLIGHT END?>
								<?WPF BEGIN?>
								IsChecked="{Binding Path=IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
								ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}"
								<?WPF END?> />
						</Grid>
						<!-- Content UP =================================================== -->
						<Grid
							x:Name="ContentElement" Grid.Row="0" Visibility="Collapsed"
							HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
							VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
							<ContentPresenter
								x:Name="Content"
								Content="{TemplateBinding Content}"
								ContentTemplate="{TemplateBinding ContentTemplate}"
								HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
								VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
								Cursor="{TemplateBinding Cursor}" Margin="{TemplateBinding Padding}" />
						</Grid>
					</Grid>
				</Border>
			</Grid>
		</Grid>
		<?WPF BEGIN?>
		<ControlTemplate.Triggers>
			<Trigger Property="IsExpanded" Value="True">
				<Trigger.EnterActions>
					<BeginStoryboard>
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentElement"
									Storyboard.TargetProperty="Visibility" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Visible</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
							<DoubleAnimation Storyboard.TargetName="ContentElement"
									Storyboard.TargetProperty="Opacity" To="1.0" Duration="0:0:0.2" />
						</Storyboard>
					</BeginStoryboard>
				</Trigger.EnterActions>
				<Trigger.ExitActions>
					<BeginStoryboard>
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentElement"
									Storyboard.TargetProperty="Visibility" Duration="0:0:0.2">
								<DiscreteObjectKeyFrame KeyTime="0:0:0.2">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Collapsed</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
							<DoubleAnimation Storyboard.TargetName="ContentElement"
									Storyboard.TargetProperty="Opacity" To="0.0" Duration="0:0:0.2" />
						</Storyboard>
					</BeginStoryboard>
				</Trigger.ExitActions>
			</Trigger>
			<Trigger Property="IsEnabled" Value="True">
				<Trigger.EnterActions>
					<BeginStoryboard>
						<Storyboard>
							<DoubleAnimation Storyboard.TargetName="HeaderElement"
									Storyboard.TargetProperty="Opacity" To="1.0" Duration="0:0:0.2" />
						</Storyboard>
					</BeginStoryboard>
				</Trigger.EnterActions>
				<Trigger.ExitActions>
					<BeginStoryboard>
						<Storyboard>
							<DoubleAnimation Storyboard.TargetName="HeaderElement"
									Storyboard.TargetProperty="Opacity" To="0.5" Duration="0:0:0.2" />
						</Storyboard>
					</BeginStoryboard>
				</Trigger.ExitActions>
			</Trigger>
		</ControlTemplate.Triggers>
		<?WPF END?>
	</ControlTemplate>

	<!-- LEFT ======================================================================= -->
	<ControlTemplate TargetType="telerik:RadExpander" x:Key="ExpanderLeftTemplate">
		<Grid x:Name="RootElement" Background="Transparent">
			<?SILVERLIGHT BEGIN?>
			<vsm:VisualStateManager.VisualStateGroups>
				<vsm:VisualStateGroup x:Name="CommonStateGroup">
					<vsm:VisualState x:Name="Normal" />
					<vsm:VisualState x:Name="Disabled">
						<Storyboard>
							<DoubleAnimation Storyboard.TargetProperty="Opacity"
									Storyboard.TargetName="HeaderButton" To="0.5" Duration="0:0:0.2" />
						</Storyboard>
					</vsm:VisualState>
				</vsm:VisualStateGroup>
				<vsm:VisualStateGroup x:Name="ExpandStateGroup">
					<VisualState x:Name="Expanded">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentElement"
									Storyboard.TargetProperty="Visibility">
								<DiscreteObjectKeyFrame KeyTime="0:0:0.1">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Visible</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
							<DoubleAnimation Storyboard.TargetProperty="Opacity"
									Storyboard.TargetName="ContentElement" To="1" Duration="0:0:0.2" />
						</Storyboard>
					</VisualState>
					<vsm:VisualState x:Name="Collapsed">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentElement"
									Storyboard.TargetProperty="Visibility">
								<DiscreteObjectKeyFrame KeyTime="0:0:0.1">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Collapsed</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
							<DoubleAnimation Storyboard.TargetProperty="Opacity"
									Storyboard.TargetName="ContentElement" To="0.5"
									Duration="0:0:0.1" />
						</Storyboard>
					</vsm:VisualState>
				</vsm:VisualStateGroup>
			</vsm:VisualStateManager.VisualStateGroups>
			<?SILVERLIGHT END?>
			<Grid>
				<Border BorderBrush="{TemplateBinding BorderBrush}"
					BorderThickness="{TemplateBinding BorderThickness}"
					Background="{TemplateBinding Background}" CornerRadius="3"
					<?SILVERLIGHT BEGIN?>
					UseLayoutRounding="true"
					<?SILVERLIGHT END?>>
					<Grid>
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="*" />
							<ColumnDefinition Width="Auto" />
						</Grid.ColumnDefinitions>
						<!-- Header LEFT ================================================== -->
						<Grid x:Name="HeaderElement" Grid.Column="1" Background="Transparent">
							<ToggleButton
								x:Name="HeaderButton" Grid.Column="1"
								Margin="1" MinWidth="0" MinHeight="0"
								Template="{StaticResource ExpanderLeftHeaderStyle}"
								Content="{TemplateBinding Header}"
								ContentTemplate="{TemplateBinding HeaderTemplate}"
								IsEnabled="{TemplateBinding IsEnabled}"
								<?SILVERLIGHT BEGIN?>
								IsChecked="{TemplateBinding IsExpanded}"
								<?SILVERLIGHT END?>
								<?WPF BEGIN?>
								IsChecked="{Binding Path=IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
								ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}"
								<?WPF END?> />
						</Grid>
						<!-- Content LEFT ================================================= -->
						<Grid
							x:Name="ContentElement" Visibility="Collapsed"
							HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
							VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
							<ContentPresenter x:Name="Content"
								Content="{TemplateBinding Content}"
								ContentTemplate="{TemplateBinding ContentTemplate}"
								HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
								VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
								Cursor="{TemplateBinding Cursor}" Margin="{TemplateBinding Padding}" />
						</Grid>
					</Grid>
				</Border>
			</Grid>
		</Grid>
		<?WPF BEGIN?>
		<ControlTemplate.Triggers>
			<Trigger Property="IsExpanded" Value="True">
				<Trigger.EnterActions>
					<BeginStoryboard>
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentElement"
									Storyboard.TargetProperty="Visibility" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Visible</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
							<DoubleAnimation Storyboard.TargetName="ContentElement"
									Storyboard.TargetProperty="Opacity" To="1.0" Duration="0:0:0.2" />
						</Storyboard>
					</BeginStoryboard>
				</Trigger.EnterActions>
				<Trigger.ExitActions>
					<BeginStoryboard>
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentElement"
									Storyboard.TargetProperty="Visibility" Duration="0:0:0.2">
								<DiscreteObjectKeyFrame KeyTime="0:0:0.2">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Collapsed</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
							<DoubleAnimation Storyboard.TargetName="ContentElement"
									Storyboard.TargetProperty="Opacity" To="0.0" Duration="0:0:0.2" />
						</Storyboard>
					</BeginStoryboard>
				</Trigger.ExitActions>
			</Trigger>
			<Trigger Property="IsEnabled" Value="True">
				<Trigger.EnterActions>
					<BeginStoryboard>
						<Storyboard>
							<DoubleAnimation Storyboard.TargetName="HeaderElement"
									Storyboard.TargetProperty="Opacity" To="1.0" Duration="0:0:0.2" />
						</Storyboard>
					</BeginStoryboard>
				</Trigger.EnterActions>
				<Trigger.ExitActions>
					<BeginStoryboard>
						<Storyboard>
							<DoubleAnimation Storyboard.TargetName="HeaderElement"
									Storyboard.TargetProperty="Opacity" To="0.5" Duration="0:0:0.2" />
						</Storyboard>
					</BeginStoryboard>
				</Trigger.ExitActions>
			</Trigger>
		</ControlTemplate.Triggers>
		<?WPF END?>
	</ControlTemplate>

	<!-- RIGHT ====================================================================== -->
	<ControlTemplate TargetType="telerik:RadExpander" x:Key="ExpanderRightTemplate">
		<Grid x:Name="RootElement" Background="Transparent">
			<?SILVERLIGHT BEGIN?>
			<vsm:VisualStateManager.VisualStateGroups>
				<vsm:VisualStateGroup x:Name="CommonStateGroup">
					<vsm:VisualState x:Name="Normal" />
					<vsm:VisualState x:Name="Disabled">
						<Storyboard>
							<DoubleAnimation Storyboard.TargetProperty="Opacity"
									Storyboard.TargetName="HeaderButton" To="0.5" Duration="0:0:0.2" />
						</Storyboard>
					</vsm:VisualState>
				</vsm:VisualStateGroup>
				<vsm:VisualStateGroup x:Name="ExpandStateGroup">
					<VisualState x:Name="Expanded">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentElement"
									Storyboard.TargetProperty="Visibility">
								<DiscreteObjectKeyFrame KeyTime="0:0:0.1">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Visible</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
							<DoubleAnimation Storyboard.TargetProperty="Opacity"
									Storyboard.TargetName="ContentElement" To="1" Duration="0:0:0.2" />
						</Storyboard>
					</VisualState>
					<vsm:VisualState x:Name="Collapsed">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentElement"
									Storyboard.TargetProperty="Visibility">
								<DiscreteObjectKeyFrame KeyTime="0:0:0.1">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Collapsed</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
							<DoubleAnimation Storyboard.TargetProperty="Opacity"
									Storyboard.TargetName="ContentElement" To="0.5"
									Duration="0:0:0.1" />
						</Storyboard>
					</vsm:VisualState>
				</vsm:VisualStateGroup>
			</vsm:VisualStateManager.VisualStateGroups>
			<?SILVERLIGHT END?>
			<Grid>
				<!--Background -->
				<Border BorderBrush="{TemplateBinding BorderBrush}"
					BorderThickness="{TemplateBinding BorderThickness}"
					Background="{TemplateBinding Background}" CornerRadius="3"
					<?SILVERLIGHT BEGIN?>
					UseLayoutRounding="true"
					<?SILVERLIGHT END?>>
					<Grid>
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="Auto" />
							<ColumnDefinition Width="*" />
						</Grid.ColumnDefinitions>
						<!-- Header RIGHT =================================================== -->
						<Grid x:Name="HeaderElement" Background="Transparent">
							<ToggleButton
								x:Name="HeaderButton"
								Margin="1" MinWidth="0" MinHeight="0"
								Template="{StaticResource ExpanderRightHeaderStyle}"
								Content="{TemplateBinding Header}"
								ContentTemplate="{TemplateBinding HeaderTemplate}"
								IsEnabled="{TemplateBinding IsEnabled}"
								<?SILVERLIGHT BEGIN?>
								IsChecked="{TemplateBinding IsExpanded}"
								<?SILVERLIGHT END?>
								<?WPF BEGIN?>
								IsChecked="{Binding Path=IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
								ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}"
								<?WPF END?> />
						</Grid>
						<!-- Content RIGHT ================================================== -->
						<Grid
							x:Name="ContentElement" Visibility="Collapsed" Grid.Column="1"
							HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
							VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
							<ContentPresenter x:Name="Content"
								Content="{TemplateBinding Content}"
								ContentTemplate="{TemplateBinding ContentTemplate}"
								HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
								VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
								Cursor="{TemplateBinding Cursor}" Margin="{TemplateBinding Padding}" />
						</Grid>
					</Grid>
				</Border>
			</Grid>
		</Grid>
		<?WPF BEGIN?>
			<ControlTemplate.Triggers>
			<Trigger Property="IsExpanded" Value="True">
				<Trigger.EnterActions>
					<BeginStoryboard>
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentElement"
									Storyboard.TargetProperty="Visibility" Duration="0">
								<DiscreteObjectKeyFrame KeyTime="0">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Visible</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
							<DoubleAnimation Storyboard.TargetName="ContentElement"
									Storyboard.TargetProperty="Opacity" To="1.0" Duration="0:0:0.2" />
						</Storyboard>
					</BeginStoryboard>
				</Trigger.EnterActions>
				<Trigger.ExitActions>
					<BeginStoryboard>
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentElement"
									Storyboard.TargetProperty="Visibility" Duration="0:0:0.2">
								<DiscreteObjectKeyFrame KeyTime="0:0:0.2">
									<DiscreteObjectKeyFrame.Value>
										<Visibility>Collapsed</Visibility>
									</DiscreteObjectKeyFrame.Value>
								</DiscreteObjectKeyFrame>
							</ObjectAnimationUsingKeyFrames>
							<DoubleAnimation Storyboard.TargetName="ContentElement"
									Storyboard.TargetProperty="Opacity" To="0.0" Duration="0:0:0.2" />
						</Storyboard>
					</BeginStoryboard>
				</Trigger.ExitActions>
			</Trigger>
			<Trigger Property="IsEnabled" Value="True">
				<Trigger.EnterActions>
					<BeginStoryboard>
						<Storyboard>
							<DoubleAnimation Storyboard.TargetName="HeaderElement"
									Storyboard.TargetProperty="Opacity" To="1.0" Duration="0:0:0.2" />
						</Storyboard>
					</BeginStoryboard>
				</Trigger.EnterActions>
				<Trigger.ExitActions>
					<BeginStoryboard>
						<Storyboard>
							<DoubleAnimation Storyboard.TargetName="HeaderElement"
									Storyboard.TargetProperty="Opacity" To="0.5" Duration="0:0:0.2" />
						</Storyboard>
					</BeginStoryboard>
				</Trigger.ExitActions>
			</Trigger>
		</ControlTemplate.Triggers>
		<?WPF END?>
	</ControlTemplate>

	<!-- STYLE ====================================================================== -->
	<Style TargetType="telerik:RadExpander"
		<?WPF BEGIN?>
		x:Key="{themes:ThemeResourceKey ThemeType=themes:VistaTheme, ElementType=telerik:RadExpander}"
		<?WPF END?>
		>
		<Setter Property="IsTabStop" Value="false" />
		<Setter Property="IsEnabled" Value="true" />
		<Setter Property="ExpandDirection" Value="Down" />
		<Setter Property="IsExpanded" Value="false" />
		<Setter Property="HorizontalContentAlignment" Value="Stretch" />
		<Setter Property="VerticalContentAlignment" Value="Stretch" />
		<Setter Property="Background" Value="{StaticResource TransperantColor}" />
		<Setter Property="BorderBrush" Value="{StaticResource TransperantColor}" />
		<Setter Property="Padding" Value="2,2,2,2" />
		<!-- Default Template -->
		<Setter Property="Template" Value="{StaticResource ExpanderDownTemplate}" />
		<Setter Property="TemplateDown" Value="{StaticResource ExpanderDownTemplate}" />
		<Setter Property="TemplateUp" Value="{StaticResource ExpanderUpTemplate}" />
		<Setter Property="TemplateLeft" Value="{StaticResource ExpanderLeftTemplate}" />
		<Setter Property="TemplateRight" Value="{StaticResource ExpanderRightTemplate}" />
		<!-- Animation -->
		<!--
		<?SILVERLIGHT BEGIN?>
		<Setter Property="animation:AnimationManager.AnimationSelector">
			<Setter.Value>
				<animation:AnimationSelector>
					<animation:ExpanderExpandCollapseAnimation
						AnimationName="Expand" Direction="In" TargetName="ContentElement" />
					<animation:ExpanderExpandCollapseAnimation
						AnimationName="Collapse" Direction="Out" TargetName="ContentElement" />
				</animation:AnimationSelector>
			</Setter.Value>
		</Setter>
		<?SILVERLIGHT END?>
		-->
	</Style>

	<?BODY END?>
</ResourceDictionary>
