<UserControl x:Class="TreeViewSelfReferenceWCFService.MainPage"
			 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
			 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
			 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
			 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
			 xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
			 xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"	 
			 xmlns:local="clr-namespace:TreeViewSelfReferenceWCFService"
			 mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
	<UserControl.Resources>
		<local:HierarchicalDataSource x:Key="Source"/>

		<telerik:HierarchicalDataTemplate x:Key="ItemTemplate" 
										  ItemsSource="{Binding Children}">
			<TextBlock Text="{Binding Text}"/>
		</telerik:HierarchicalDataTemplate>

	</UserControl.Resources>
	<Grid x:Name="LayoutRoot">
			<telerikNavigation:RadTreeView HorizontalAlignment="Left" x:Name="myTreeView"
									   VerticalAlignment="Top"
									   ItemsSource="{StaticResource Source}"
									   ItemTemplate="{StaticResource ItemTemplate}"/>
	</Grid>
</UserControl>
