<UserControl x:Class="USPopulation.MainPage"
		xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:viewmodel="clr-namespace:USPopulation.ViewModel"
		xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
	<UserControl.Resources>
		<viewmodel:RadTreeViewXmlDataSource x:Key="TreeViewXmlDataSource"
				Source="DataSource/USPopulation.xml" />
		<telerik:HierarchicalDataTemplate x:Key="TreeItemTemplate" ItemsSource="{Binding Items}">
			<telerik:ContainerBinding.ContainerBindings>
				<telerik:ContainerBindingCollection>
					<telerik:ContainerBinding Binding="{Binding Value}" PropertyName="Tag" />
				</telerik:ContainerBindingCollection>
			</telerik:ContainerBinding.ContainerBindings>
			<TextBlock Text="{Binding Header}" />
		</telerik:HierarchicalDataTemplate>
	</UserControl.Resources>
	<Grid x:Name="LayoutRoot" Background="WhiteSmoke">
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto" />
			<RowDefinition Height="*" />
		</Grid.RowDefinitions>
		<TextBlock Text="List of U.S. states and territories by population" FontSize="24"
				HorizontalAlignment="Left" Margin="10" />
		<telerik:RadTreeView ItemsSource="{StaticResource TreeViewXmlDataSource}"
				HorizontalAlignment="Left"
				ItemContainerStyle="{StaticResource TreeViewItemDefaultStyle}" ItemsIndent="0"
				ItemTemplate="{StaticResource TreeItemTemplate}" IsExpandOnSingleClickEnabled="True"
				FontSize="14" Grid.Row="1" IsSingleExpandPath="True" Margin="10" />
	</Grid>
</UserControl>
