<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" x:Class="USPopulation.App">
	<Application.Resources>
		<ControlTemplate x:Key="TreeViewItemDefaultTemplate" TargetType="telerik:RadTreeViewItem">
			<Grid x:Name="RootElement" Margin="5">
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="*" />
					<ColumnDefinition Width="*" />
				</Grid.ColumnDefinitions>
				<Grid.RowDefinitions>
					<RowDefinition Height="*" />
					<RowDefinition Height="Auto" />
				</Grid.RowDefinitions>
				<VisualStateManager.VisualStateGroups>
					<VisualStateGroup x:Name="CommonStates">
						<VisualState x:Name="Normal" />
						<VisualState x:Name="Disabled">
							<Storyboard>
								<DoubleAnimation Duration="0:0:0.0" Storyboard.TargetName="Header"
										Storyboard.TargetProperty="Opacity" To="0.35" />
							</Storyboard>
						</VisualState>
						<VisualState x:Name="MouseOver">
							<Storyboard>
								<DoubleAnimation Duration="0:0:0.1"
										Storyboard.TargetName="MouseOverVisual"
										Storyboard.TargetProperty="Opacity" To="1" />
							</Storyboard>
						</VisualState>
					</VisualStateGroup>
					<VisualStateGroup x:Name="SelectionStates">
						<VisualState x:Name="Unselected" />
						<VisualState x:Name="Selected">
							<Storyboard>
								<ObjectAnimationUsingKeyFrames Duration="0"
										Storyboard.TargetName="SelectionVisual"
										Storyboard.TargetProperty="Visibility">
									<DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
								</ObjectAnimationUsingKeyFrames>
							</Storyboard>
						</VisualState>
					</VisualStateGroup>
				</VisualStateManager.VisualStateGroups>
				<Border BorderBrush="Black" Background="#FFD884" BorderThickness="1"
						Grid.RowSpan="2" Grid.ColumnSpan="2">
					<Grid>
						<Border x:Name="MouseOverVisual" Background="Orange" Opacity="0" />
						<Border x:Name="SelectionVisual" Background="Orange" Visibility="Collapsed"></Border>
					</Grid>
				</Border>
				<Grid x:Name="HeaderRow" Background="Transparent">
					<Grid Grid.Column="0" Margin="5" Width="200">
						<ContentPresenter x:Name="Header" HorizontalAlignment="Left"
								VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
								Content="{TemplateBinding Header}"
								ContentTemplate="{TemplateBinding HeaderTemplate}" />
					</Grid>
				</Grid>
				<ItemsPresenter x:Name="ItemsHost" Grid.Column="1" Visibility="Collapsed" />
				<Border Grid.Row="1" Background="#FFD800" Grid.ColumnSpan="2" BorderThickness="1"
						BorderBrush="Black">
					<Grid>
						<Grid.ColumnDefinitions>
							<ColumnDefinition />
							<ColumnDefinition />
						</Grid.ColumnDefinitions>
						<TextBlock Text="Population: " FontSize="{TemplateBinding FontSize}"
								Margin="5" VerticalAlignment="Center" HorizontalAlignment="Right" />
						<ContentPresenter Content="{TemplateBinding Tag}" HorizontalAlignment="Left"
								Grid.Column="1" VerticalAlignment="Center" Margin="5" />
					</Grid>
				</Border>
			</Grid>
		</ControlTemplate>
		<Style x:Key="TreeViewItemDefaultStyle" TargetType="telerik:RadTreeViewItem">
			<Setter Property="VerticalContentAlignment" Value="Top" />
			<Setter Property="Template" Value="{StaticResource TreeViewItemDefaultTemplate}" />
		</Style>
	</Application.Resources>
</Application>
