<UserControl x:Class="TestColorPicker.Tests.TreeviewBinding"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
		xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
		 xmlns:core="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
    Width="400">
	<UserControl.Resources>
	<DataTemplate x:Key="OrdersTemplate">
		<StackPanel Orientation="Horizontal">
			<TextBlock Text="OrderID : " />
			<TextBlock Text="{Binding OrderID}" />
		</StackPanel>
	</DataTemplate>
	<core:HierarchicalDataTemplate x:Key="ProductTemplate" ItemsSource="{Binding OrderDetails}"
			ItemTemplate="{StaticResource OrdersTemplate}">
		<TextBlock Text="{Binding ProductName}" />
	</core:HierarchicalDataTemplate>
	<core:HierarchicalDataTemplate x:Key="CategoryTemplate" ItemsSource="{Binding Products}"
			ItemTemplate="{StaticResource ProductTemplate}">
		<TextBlock Text="{Binding Name}" />
	</core:HierarchicalDataTemplate>
	</UserControl.Resources>
	<StackPanel >
	<telerik:RadTreeView Name="treeView" IsDragDropEnabled="True"
						 ItemTemplate="{StaticResource CategoryTemplate}" 
						 IsLoadOnDemandEnabled="True"/>

	</StackPanel>
</UserControl>
