<Application x:Class="NorthwindBackend.App" 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:input="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
		xmlns:nav="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation">

	<Application.Resources>
		<Style TargetType="ToggleButton" x:Key="MyExpanderStyle">
			<Setter Property="IsEnabled" Value="True" />
			<Setter Property="IsTabStop" Value="False" />
			<Setter Property="Cursor" Value="Hand" />
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="ToggleButton">
						<Grid Margin="5,0,0,0">
							<vsm:VisualStateManager.VisualStateGroups>
								<vsm:VisualStateGroup x:Name="CommonStates">
									<vsm:VisualState x:Name="Normal">

									</vsm:VisualState>
									<vsm:VisualState x:Name="MouseOver">
										<Storyboard>
											<DoubleAnimation Duration="0:0:0.05"
													Storyboard.TargetName="ExpandedVisualOver"
													Storyboard.TargetProperty="Opacity" To="1" />
											<DoubleAnimation Duration="0:0:0.05"
													Storyboard.TargetName="CollapsedVisualOver"
													Storyboard.TargetProperty="Opacity" To="1" />
										</Storyboard>
									</vsm:VisualState>
								</vsm:VisualStateGroup>
								<vsm:VisualStateGroup x:Name="CheckStates">
									<vsm:VisualState x:Name="Checked">
										<Storyboard>
											<DoubleAnimation Duration="0:0:0.05" Storyboard.TargetName="ExpandedStates"
													Storyboard.TargetProperty="Opacity" To="1" />
											<DoubleAnimation Duration="0:0:0.05" Storyboard.TargetName="CollapsedStates"
													Storyboard.TargetProperty="Opacity" To="0" />
										</Storyboard>
									</vsm:VisualState>

									<vsm:VisualState x:Name="Unchecked">
										<Storyboard>
											<DoubleAnimation Duration="0:0:0.05" Storyboard.TargetName="ExpandedStates"
													Storyboard.TargetProperty="Opacity" To="0" />
											<DoubleAnimation Duration="0:0:0.05" Storyboard.TargetName="CollapsedStates"
													Storyboard.TargetProperty="Opacity" To="1" />
										</Storyboard>
									</vsm:VisualState>
								</vsm:VisualStateGroup>
							</vsm:VisualStateManager.VisualStateGroups>
							<Grid x:Name="CollapsedStates">
								<Path x:Name="CollapsedVisual" Stretch="Fill" Fill="#FF3F6618"
										Data="F1 M -2.54313e-006,-12L 1.33333,-12L 1.33333,-10.6667L 2.66667,-10.6667L 2.66667,-9.3334L 4,-9.3334L 4,-8.00001L 5.33333,-8.00001L 5.33333,-6.66667L 6.66667,-6.66667L 6.66667,-5.33334L 5.33333,-5.33334L 5.33333,-4.00001L 4,-4.00001L 4,-2.66673L 2.66667,-2.66673L 2.66667,-1.33341L 1.33333,-1.33341L 1.33333,0L -2.54313e-006,0L -2.54313e-006,-12 Z "
										HorizontalAlignment="Left" Margin="5,7,0,0" Width="5" Height="9"
										VerticalAlignment="Top" />
								<Path x:Name="CollapsedVisualOver" Opacity="0" Stretch="Fill" Fill="#FF3F6618"
										Data="F1 M -2.54313e-006,-12L 1.33333,-12L 1.33333,-10.6667L 2.66667,-10.6667L 2.66667,-9.3334L 4,-9.3334L 4,-8.00001L 5.33333,-8.00001L 5.33333,-6.66667L 6.66667,-6.66667L 6.66667,-5.33334L 5.33333,-5.33334L 5.33333,-4.00001L 4,-4.00001L 4,-2.66673L 2.66667,-2.66673L 2.66667,-1.33341L 1.33333,-1.33341L 1.33333,0L -2.54313e-006,0L -2.54313e-006,-12 Z "
										HorizontalAlignment="Left" Margin="5,7,0,0" Width="5" Height="9"
										VerticalAlignment="Top" />
							</Grid>
							<Grid x:Name="ExpandedStates" Opacity="0">
								<Path x:Name="ExpandedVisual" Stretch="Fill" Fill="#FF3F6618"
										Data="F1 M -2.54313e-006,-12L 1.33333,-12L 1.33333,-10.6667L 2.66667,-10.6667L 2.66667,-9.3334L 4,-9.3334L 4,-8.00001L 5.33333,-8.00001L 5.33333,-6.66667L 6.66667,-6.66667L 6.66667,-5.33334L 5.33333,-5.33334L 5.33333,-4.00001L 4,-4.00001L 4,-2.66673L 2.66667,-2.66673L 2.66667,-1.33341L 1.33333,-1.33341L 1.33333,0L -2.54313e-006,0L -2.54313e-006,-12 Z "
										RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Left" Margin="5,7,0,0"
										Width="5" Height="9" VerticalAlignment="Top">
									<Path.RenderTransform>
										<TransformGroup>
											<ScaleTransform ScaleX="1" ScaleY="1" />
											<SkewTransform AngleX="0" AngleY="0" />
											<RotateTransform Angle="90" />
											<TranslateTransform X="0" Y="0" />
										</TransformGroup>
									</Path.RenderTransform>
								</Path>
								<Path x:Name="ExpandedVisualOver" Opacity="0" Stretch="Fill" Fill="#FF3F6618"
										Data="F1 M -2.54313e-006,-12L 1.33333,-12L 1.33333,-10.6667L 2.66667,-10.6667L 2.66667,-9.3334L 4,-9.3334L 4,-8.00001L 5.33333,-8.00001L 5.33333,-6.66667L 6.66667,-6.66667L 6.66667,-5.33334L 5.33333,-5.33334L 5.33333,-4.00001L 4,-4.00001L 4,-2.66673L 2.66667,-2.66673L 2.66667,-1.33341L 1.33333,-1.33341L 1.33333,0L -2.54313e-006,0L -2.54313e-006,-12 Z "
										RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Left" Margin="5,7,0,0"
										Width="5" Height="9" VerticalAlignment="Top">
									<Path.RenderTransform>
										<TransformGroup>
											<ScaleTransform ScaleX="1" ScaleY="1" />
											<SkewTransform AngleX="0" AngleY="0" />
											<RotateTransform Angle="90" />
											<TranslateTransform X="0" Y="0" />
										</TransformGroup>
									</Path.RenderTransform>
								</Path>
							</Grid>
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<Style x:Key="MyTreeViewItemTemplate" TargetType="nav:RadTreeViewItem">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="nav:RadTreeViewItem">
						<Grid x:Name="RootElement">
							<Grid.Resources>
								<SolidColorBrush x:Key="LineColor" Color="#FF000000" />

								<SolidColorBrush x:Key="FocusBrush" Color="#FF000000" />

								<RadialGradientBrush x:Key="SelectionFillBrush">
									<RadialGradientBrush.RelativeTransform>
										<MatrixTransform />
									</RadialGradientBrush.RelativeTransform>
									<RadialGradientBrush.Transform>
										<MatrixTransform />
									</RadialGradientBrush.Transform>
									<GradientStop Color="#FF8EA96F" />
									<GradientStop Color="#B2D2D7CC" Offset="1" />
								</RadialGradientBrush>

								<SolidColorBrush x:Key="SelectionUnfocusedFillBrush" Color="#00D4D4D4"></SolidColorBrush>

								<SolidColorBrush x:Key="MouseOverFillBrush" Color="#007FB6CA"></SolidColorBrush>

								<SolidColorBrush x:Key="LoadingVisualBrush" Color="#FF3F6618"></SolidColorBrush>

							</Grid.Resources>
							<vsm:VisualStateManager.VisualStateGroups>

								<vsm:VisualStateGroup x:Name="CommonStates">

									<vsm:VisualState x:Name="Normal">
										<Storyboard>

										</Storyboard>
									</vsm:VisualState>
									<vsm:VisualState x:Name="Disabled">
										<Storyboard>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetName="DisabledVisual"
													Storyboard.TargetProperty="Visibility" Duration="0">
												<DiscreteObjectKeyFrame KeyTime="0">
													<DiscreteObjectKeyFrame.Value>
														<Visibility>Visible</Visibility>
													</DiscreteObjectKeyFrame.Value>
												</DiscreteObjectKeyFrame>
											</ObjectAnimationUsingKeyFrames>

											<DoubleAnimation Storyboard.TargetProperty="Opacity"
													Storyboard.TargetName="Header" To="0.35" Duration="0:0:0.0" />

											<DoubleAnimation Storyboard.TargetProperty="Opacity"
													Storyboard.TargetName="Image" To="0.35" Duration="0:0:0.0" />
										</Storyboard>
									</vsm:VisualState>
									<vsm:VisualState x:Name="MouseOver">
										<Storyboard>
											<DoubleAnimation Storyboard.TargetProperty="Opacity"
													Storyboard.TargetName="MouseOverVisual" To="0.5" Duration="0:0:0.1" />
										</Storyboard>
									</vsm:VisualState>
								</vsm:VisualStateGroup>
								<vsm:VisualStateGroup x:Name="SelectionStates">
									<vsm:VisualState x:Name="Unselected">
										<Storyboard>

										</Storyboard>
									</vsm:VisualState>
									<vsm:VisualState x:Name="Selected">
										<Storyboard>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SelectionVisual"
													Storyboard.TargetProperty="Visibility" Duration="0">
												<DiscreteObjectKeyFrame KeyTime="0">
													<DiscreteObjectKeyFrame.Value>
														<Visibility>Visible</Visibility>
													</DiscreteObjectKeyFrame.Value>
												</DiscreteObjectKeyFrame>
											</ObjectAnimationUsingKeyFrames>
										</Storyboard>
									</vsm:VisualState>
									<vsm:VisualState x:Name="SelectedUnfocused">
										<Storyboard>
											<ObjectAnimationUsingKeyFrames
													Storyboard.TargetName="SelectionUnfocusedVisual"
													Storyboard.TargetProperty="Visibility" Duration="0">
												<DiscreteObjectKeyFrame KeyTime="0">
													<DiscreteObjectKeyFrame.Value>
														<Visibility>Visible</Visibility>
													</DiscreteObjectKeyFrame.Value>
												</DiscreteObjectKeyFrame>
											</ObjectAnimationUsingKeyFrames>
										</Storyboard>
									</vsm:VisualState>
								</vsm:VisualStateGroup>
								<vsm:VisualStateGroup x:Name="LoadingOnDemandStates">
									<vsm:VisualState x:Name="LoadingOnDemand">
										<Storyboard>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetName="LoadingVisual"
													Storyboard.TargetProperty="Visibility" Duration="0">
												<DiscreteObjectKeyFrame KeyTime="0">
													<DiscreteObjectKeyFrame.Value>
														<Visibility>Visible</Visibility>
													</DiscreteObjectKeyFrame.Value>
												</DiscreteObjectKeyFrame>
											</ObjectAnimationUsingKeyFrames>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Expander"
													Storyboard.TargetProperty="Visibility" Duration="0">
												<DiscreteObjectKeyFrame KeyTime="0">
													<DiscreteObjectKeyFrame.Value>
														<Visibility>Collapsed</Visibility>
													</DiscreteObjectKeyFrame.Value>
												</DiscreteObjectKeyFrame>
											</ObjectAnimationUsingKeyFrames>
											<DoubleAnimation From="0" To="359" Duration="0:0:1" RepeatBehavior="Forever"
													Storyboard.TargetName="LoadingVisualAngleTransform"
													Storyboard.TargetProperty="Angle" />
										</Storyboard>
									</vsm:VisualState>
									<vsm:VisualState x:Name="LoadingOnDemandReverse">
										<Storyboard>

										</Storyboard>
									</vsm:VisualState>
								</vsm:VisualStateGroup>
								<vsm:VisualStateGroup x:Name="FocusStates">
									<vsm:VisualState x:Name="Focused">
										<Storyboard>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual"
													Storyboard.TargetProperty="Visibility" Duration="0">
												<DiscreteObjectKeyFrame KeyTime="0">
													<DiscreteObjectKeyFrame.Value>
														<Visibility>Visible</Visibility>
													</DiscreteObjectKeyFrame.Value>
												</DiscreteObjectKeyFrame>
											</ObjectAnimationUsingKeyFrames>
										</Storyboard>
									</vsm:VisualState>
									<vsm:VisualState x:Name="Unfocused">
										<Storyboard>

										</Storyboard>
									</vsm:VisualState>
								</vsm:VisualStateGroup>
								<vsm:VisualStateGroup x:Name="ExpandStates">
									<vsm:VisualState x:Name="Expanded">
										<Storyboard>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ItemsHost"
													Storyboard.TargetProperty="Visibility" Duration="0">
												<DiscreteObjectKeyFrame KeyTime="0">
													<DiscreteObjectKeyFrame.Value>
														<Visibility>Visible</Visibility>
													</DiscreteObjectKeyFrame.Value>
												</DiscreteObjectKeyFrame>
											</ObjectAnimationUsingKeyFrames>
											<DoubleAnimation Storyboard.TargetName="ItemsHost"
													Storyboard.TargetProperty="Opacity" From="0.1" To="1.0"
													Duration="0:0:0.2" />
										</Storyboard>
									</vsm:VisualState>
									<vsm:VisualState x:Name="Collapsed">
										<Storyboard>

											<DoubleAnimation Storyboard.TargetName="ItemsHost"
													Storyboard.TargetProperty="Opacity" From="1" To="0.1"
													Duration="0:0:0" />
											<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ItemsHost"
													Storyboard.TargetProperty="Visibility" Duration="0">
												<DiscreteObjectKeyFrame KeyTime="0">
													<DiscreteObjectKeyFrame.Value>
														<Visibility>Collapsed</Visibility>
													</DiscreteObjectKeyFrame.Value>
												</DiscreteObjectKeyFrame>
											</ObjectAnimationUsingKeyFrames>
										</Storyboard>
									</vsm:VisualState>
								</vsm:VisualStateGroup>
							</vsm:VisualStateManager.VisualStateGroups>
							<Grid.RowDefinitions>
								<RowDefinition Height="Auto" />
								<RowDefinition />
							</Grid.RowDefinitions>
							<Border Background="{TemplateBinding Background}"
									BorderBrush="{TemplateBinding BorderBrush}"
									BorderThickness="{TemplateBinding BorderThickness}">
								<Grid x:Name="HeaderRow" Background="Transparent"
										MinHeight="{TemplateBinding MinHeight}">

									<Grid.ColumnDefinitions>
										<!-- indent -->
										<ColumnDefinition Width="Auto" />

										<!-- collapse/expand -->
										<ColumnDefinition Width="Auto" />

										<!-- checkbox, radio-->
										<ColumnDefinition Width="Auto" />

										<!-- left image -->
										<ColumnDefinition Width="Auto" />

										<!-- selection, text, edit element -->
										<ColumnDefinition Width="Auto" />

										<!-- empty -->
										<ColumnDefinition Width="*" />

									</Grid.ColumnDefinitions>

									<!-- Selection Unfocused-->
									<Rectangle Fill="{StaticResource SelectionUnfocusedFillBrush}" Grid.ColumnSpan="6"
											x:Name="SelectionUnfocusedVisual" Visibility="Collapsed" />

									<!-- Selection -->
									<Rectangle Fill="{StaticResource SelectionFillBrush}" Grid.ColumnSpan="6"
											x:Name="SelectionVisual" Visibility="Collapsed" />

									<!-- MouseOver  -->
									<Rectangle Fill="{StaticResource MouseOverFillBrush}" Grid.ColumnSpan="6"
											x:Name="MouseOverVisual" Opacity="0" />

									<!-- indent -->
									<StackPanel x:Name="IndentContainer" Orientation="Horizontal" Opacity="0.2">
										<Rectangle x:Name="IndentFirstVerticalLine" Width="1" Visibility="Collapsed"
												Stroke="{StaticResource LineColor}" VerticalAlignment="Top">
											<Rectangle.Clip>
												<RectangleGeometry Rect="0,0,1,10000" />
											</Rectangle.Clip>
										</Rectangle>
									</StackPanel>

									<!-- ListRoot decoration -->
									<Grid Grid.Column="1" x:Name="ListRootContainer" HorizontalAlignment="Center"
											MinWidth="20">

										<!-- Lines -->
										<Rectangle x:Name="HorizontalLine" Opacity="0.2" Height="1"
												Stroke="{StaticResource LineColor}" VerticalAlignment="Center"
												HorizontalAlignment="Right">
											<Rectangle.Clip>
												<RectangleGeometry Rect="0,0,10000,1" />
											</Rectangle.Clip>
										</Rectangle>
										<Rectangle x:Name="VerticalLine" Opacity="0.2" Width="1"
												Stroke="{StaticResource LineColor}" VerticalAlignment="Top"
												HorizontalAlignment="Center">
											<Rectangle.Clip>
												<RectangleGeometry Rect="0,0,1,10000" />
											</Rectangle.Clip>
										</Rectangle>

										<!-- Collapse/Expand -->
										<ToggleButton x:Name="Expander" IsTabStop="False"
												Background="{TemplateBinding Background}" />

										<!-- Loading ... -->
										<Grid x:Name="LoadingVisual" RenderTransformOrigin="0.5,0.5"
												Visibility="Collapsed" VerticalAlignment="Center"
												HorizontalAlignment="Center">
											<Grid.RenderTransform>
												<TransformGroup>
													<RotateTransform x:Name="LoadingVisualAngleTransform" Angle="0"
															CenterX="0.5" CenterY="0.5" />
												</TransformGroup>
											</Grid.RenderTransform>
											<Path Width="10" Height="10" Stretch="Fill"
													Stroke="{StaticResource LoadingVisualBrush}" StrokeThickness="1"
													StrokeStartLineCap="Round" Data="M1,0 A1,1,90,1,1,0,-1" />

											<Path Margin="5,-1.5,0,0" HorizontalAlignment="Left" VerticalAlignment="Top"
													Width="4" Height="4" Stretch="Fill"
													Fill="{StaticResource LoadingVisualBrush}"
													Data="M0,-1.1 L0.1,-1 L0,-0.9" StrokeThickness="1" />
										</Grid>

									</Grid>
									<!--/ ListRoot decoration -->

									<!-- Checkbox/Radio -->
									<CheckBox IsTabStop="False" Grid.Column="2" VerticalAlignment="Center"
											Margin="2,0,0,0" x:Name="CheckBoxElement" Visibility="Collapsed"></CheckBox>

									<RadioButton IsTabStop="False" Grid.Column="2" Margin="2,0,0,0"
											VerticalAlignment="Center" x:Name="RadioButtonElement"
											Visibility="Collapsed"></RadioButton>
									<!--/ Checkbox/Radio -->

									<!-- Image and text -->
									<Image Grid.Column="3" x:Name="Image" Source="{TemplateBinding DefaultImageSrc}"
											MaxWidth="16" MaxHeight="16" Margin="2" HorizontalAlignment="Center"
											VerticalAlignment="Center" />

									<!-- Focus -->
									<Rectangle x:Name="FocusVisual" Visibility="Collapsed" Grid.ColumnSpan="6"
											Stroke="{StaticResource FocusBrush}" StrokeThickness="0.75"
											StrokeDashArray="1,2" IsHitTestVisible="False" />

									<!-- Content -->
									<ContentControl x:Name="Header" Grid.Column="4" Content="{TemplateBinding Header}"
											ContentTemplate="{TemplateBinding HeaderTemplate}"
											HorizontalAlignment="Left" VerticalAlignment="Center" IsTabStop="False"
											Foreground="{TemplateBinding Foreground}" FontFamily="Arial"
											Margin="1 0 5 0" Padding="{TemplateBinding Padding}"
											VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
											HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"></ContentControl>

									<!-- Edit element -->
									<Border Visibility="Collapsed" Grid.Column="4" HorizontalAlignment="Left"
											VerticalAlignment="Center" Background="#0C000000" CornerRadius="3,3,3,3"
											Width="Auto" BorderThickness="1" x:Name="EditElementContainer"
											BorderBrush="#7FFFFFFF">
										<Border Height="Auto" CornerRadius="2,2,2,2" Width="Auto" BorderThickness="1"
												BorderBrush="#3E000000">
											<TextBox x:Name="EditElement" BorderThickness="0" />
										</Border>
									</Border>

									<!-- Disabled -->
									<Rectangle x:Name="DisabledVisual" Grid.Column="2" Grid.ColumnSpan="3"
											IsHitTestVisible="true" Visibility="Collapsed" />
								</Grid>
							</Border>

							<!-- Items Container -->
							<ItemsPresenter Grid.Row="1" x:Name="ItemsHost" Visibility="Collapsed" />
							<!--/ Items Container -->

						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>

		</Style>

		<!-- template button-->
		<Style x:Key="ButtonTemplate" TargetType="Button">
			<Setter Property="Foreground" Value="#FFFFFFFF" />
			<Setter Property="FontSize" Value="11" />
			<Setter Property="FontFamily" Value="Arial" />
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="Button">
						<Grid>
							<vsm:VisualStateManager.VisualStateGroups>
								<vsm:VisualStateGroup x:Name="CommonStates">
									<vsm:VisualStateGroup.Transitions>
										<vsm:VisualTransition GeneratedDuration="00:00:00.1" To="MouseOver" />
										<vsm:VisualTransition GeneratedDuration="00:00:00.1" To="Pressed" />
									</vsm:VisualStateGroup.Transitions>
									<vsm:VisualState x:Name="Normal">
										<Storyboard>
											<ColorAnimationUsingKeyFrames BeginTime="00:00:00"
													Duration="00:00:00.0010000"
													Storyboard.TargetName="BackgroundGradient"
													Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
												<SplineColorKeyFrame KeyTime="00:00:00" Value="#99959595" />
											</ColorAnimationUsingKeyFrames>
											<ColorAnimationUsingKeyFrames BeginTime="00:00:00"
													Duration="00:00:00.0010000"
													Storyboard.TargetName="BackgroundGradient"
													Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
												<SplineColorKeyFrame KeyTime="00:00:00" Value="#996C6B6B" />
											</ColorAnimationUsingKeyFrames>
											<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
													Duration="00:00:00.0010000"
													Storyboard.TargetName="BackgroundGradient"
													Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Offset)">
												<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.6" />
											</DoubleAnimationUsingKeyFrames>
											<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
													Duration="00:00:00.0010000"
													Storyboard.TargetName="BackgroundGradient"
													Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Offset)">
												<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.516" />
											</DoubleAnimationUsingKeyFrames>
										</Storyboard>
									</vsm:VisualState>
									<vsm:VisualState x:Name="MouseOver">
										<Storyboard>
											<DoubleAnimation Duration="0" Storyboard.TargetName="BackgroundAnimation"
													Storyboard.TargetProperty="Opacity" To="1" />
											<ColorAnimationUsingKeyFrames BeginTime="00:00:00"
													Duration="00:00:00.0010000"
													Storyboard.TargetName="BackgroundGradient"
													Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
												<SplineColorKeyFrame KeyTime="00:00:00" Value="#FF545454" />
											</ColorAnimationUsingKeyFrames>
											<ColorAnimationUsingKeyFrames BeginTime="00:00:00"
													Duration="00:00:00.0010000"
													Storyboard.TargetName="BackgroundGradient"
													Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
												<SplineColorKeyFrame KeyTime="00:00:00" Value="#FF959495" />
											</ColorAnimationUsingKeyFrames>
											<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
													Duration="00:00:00.0010000"
													Storyboard.TargetName="BackgroundGradient"
													Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Offset)">
												<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.5" />
											</DoubleAnimationUsingKeyFrames>
											<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
													Duration="00:00:00.0010000"
													Storyboard.TargetName="BackgroundGradient"
													Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Offset)">
												<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.5" />
											</DoubleAnimationUsingKeyFrames>
											<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
													Duration="00:00:00.0010000"
													Storyboard.TargetName="BackgroundGradient"
													Storyboard.TargetProperty="(UIElement.Opacity)">
												<SplineDoubleKeyFrame KeyTime="00:00:00" Value="1" />
											</DoubleAnimationUsingKeyFrames>
											<ColorAnimationUsingKeyFrames BeginTime="00:00:00"
													Duration="00:00:00.0010000" Storyboard.TargetName="ellipse"
													Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
												<SplineColorKeyFrame KeyTime="00:00:00" Value="#0090B461" />
											</ColorAnimationUsingKeyFrames>
											<ColorAnimationUsingKeyFrames BeginTime="00:00:00"
													Duration="00:00:00.0010000" Storyboard.TargetName="ellipse"
													Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
												<SplineColorKeyFrame KeyTime="00:00:00" Value="#FF90B461" />
											</ColorAnimationUsingKeyFrames>
											<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
													Duration="00:00:00.0010000" Storyboard.TargetName="ellipse"
													Storyboard.TargetProperty="(Shape.Fill).(Brush.RelativeTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
												<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.016" />
											</DoubleAnimationUsingKeyFrames>
											<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
													Duration="00:00:00.0010000" Storyboard.TargetName="ellipse"
													Storyboard.TargetProperty="(Shape.Fill).(Brush.RelativeTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
												<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.123" />
											</DoubleAnimationUsingKeyFrames>
											<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
													Duration="00:00:00.0010000" Storyboard.TargetName="ellipse"
													Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Offset)">
												<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.258" />
											</DoubleAnimationUsingKeyFrames>
											<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
													Duration="00:00:00.0010000" Storyboard.TargetName="ellipse"
													Storyboard.TargetProperty="(UIElement.Opacity)">
												<SplineDoubleKeyFrame KeyTime="00:00:00" Value="1" />
											</DoubleAnimationUsingKeyFrames>
										</Storyboard>
									</vsm:VisualState>
									<vsm:VisualState x:Name="Pressed">
										<Storyboard>
											<DoubleAnimation Duration="0" Storyboard.TargetName="Highlight"
													Storyboard.TargetProperty="Opacity" To="1" />
											<DoubleAnimation Duration="0" Storyboard.TargetName="BackgroundAnimation"
													Storyboard.TargetProperty="Opacity" To="1" />
											<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient"
													Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)"
													To="#F4FFFFFF" />
											<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient"
													Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)"
													To="#6BFFFFFF" />
										</Storyboard>
									</vsm:VisualState>
									<vsm:VisualState x:Name="Disabled">
										<Storyboard>
											<DoubleAnimation Duration="0" Storyboard.TargetName="DisabledVisualElement"
													Storyboard.TargetProperty="(UIElement.Opacity)" To="1" />
										</Storyboard>
									</vsm:VisualState>
								</vsm:VisualStateGroup>
								<vsm:VisualStateGroup x:Name="FocusStates">
									<vsm:VisualState x:Name="Focused">
										<Storyboard>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisualElement"
													Storyboard.TargetProperty="Visibility" Duration="0">
												<DiscreteObjectKeyFrame KeyTime="0">
													<DiscreteObjectKeyFrame.Value>
														<Visibility>Visible</Visibility>
													</DiscreteObjectKeyFrame.Value>
												</DiscreteObjectKeyFrame>
											</ObjectAnimationUsingKeyFrames>
										</Storyboard>
									</vsm:VisualState>
									<vsm:VisualState x:Name="Unfocused" />
								</vsm:VisualStateGroup>
							</vsm:VisualStateManager.VisualStateGroups>
							<!--<Border x:Name="Background" CornerRadius="3" Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}"/>-->
							<Border x:Name="BackgroundAnimation" Opacity="0" CornerRadius="3" />
							<Border x:Name="BackgroundGradient" CornerRadius="10" BorderThickness="1"
									Margin="{TemplateBinding BorderThickness}" Opacity="0.6">
								<Border.BorderBrush>
									<SolidColorBrush Color="#FF474944">
										<SolidColorBrush.RelativeTransform>
											<MatrixTransform />
										</SolidColorBrush.RelativeTransform>
										<SolidColorBrush.Transform>
											<MatrixTransform />
										</SolidColorBrush.Transform>
									</SolidColorBrush>
								</Border.BorderBrush>
								<Border.Background>
									<LinearGradientBrush StartPoint=".7,0" EndPoint=".7,1">
										<GradientStop Color="#FF959595" Offset="0.5" />
										<GradientStop Color="#FF6C6B6B" Offset="0.5" />
									</LinearGradientBrush>
								</Border.Background>
								<Ellipse Height="41" Width="65" x:Name="ellipse" Opacity="0">
									<Ellipse.Fill>
										<RadialGradientBrush>
											<RadialGradientBrush.RelativeTransform>
												<TransformGroup>
													<ScaleTransform />
													<SkewTransform />
													<RotateTransform />
													<TranslateTransform />
												</TransformGroup>
											</RadialGradientBrush.RelativeTransform>
											<RadialGradientBrush.Transform>
												<MatrixTransform />
											</RadialGradientBrush.Transform>
											<GradientStop Color="#FF000000" />
											<GradientStop Color="#FFFFFFFF" Offset="1" />
										</RadialGradientBrush>
									</Ellipse.Fill>
								</Ellipse>
							</Border>
							<Border x:Name="Highlight" CornerRadius="10,10,10,10" Opacity="0" IsHitTestVisible="false"
									BorderThickness="0,0,0,0" Margin="{TemplateBinding BorderThickness}" />
							<ContentPresenter x:Name="contentPresenter" Content="{TemplateBinding Content}"
									ContentTemplate="{TemplateBinding ContentTemplate}"
									VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
									HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
									Margin="{TemplateBinding Padding}" />
							<Border x:Name="DisabledVisualElement" CornerRadius="3" Background="#A5FFFFFF" Opacity="0"
									IsHitTestVisible="false" />
							<Border x:Name="FocusVisualElement" CornerRadius="3" BorderThickness="0,0,0,0"
									Visibility="Collapsed" IsHitTestVisible="false" />

						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>

		<BitmapImage x:Key="BackgroundImage" UriSource="/NorthwindBackend;component/images/background.jpg" />
		<BitmapImage x:Key="SubBackgroundImage" UriSource="/NorthwindBackend;component/images/subbackground.png" />
		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" x:Key="EditPanelBackground">
			<LinearGradientBrush.RelativeTransform>
				<MatrixTransform />
			</LinearGradientBrush.RelativeTransform>
			<LinearGradientBrush.Transform>
				<MatrixTransform />
			</LinearGradientBrush.Transform>
			<GradientStop Color="#FFDFDEDE" />
			<GradientStop Color="#FFDBDBDB" Offset="1" />
		</LinearGradientBrush>
		<DataTemplate x:Key="ProductTemplate">
			<TextBlock Foreground="Black" Text="{Binding ProductName}" />
		</DataTemplate>

		<telerik:HierarchicalDataTemplate x:Key="CategoryTemplate" ItemsSource="{Binding Products}"
				ItemTemplate="{StaticResource ProductTemplate}">
			<TextBlock Text="{Binding CategoryName}" Foreground="#FF3F6618" />
		</telerik:HierarchicalDataTemplate>

	</Application.Resources>
</Application>
