<UserControl x:Class="TreeViewDefImageSrc.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"
			 mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
	<UserControl.Resources>
		
		
		<DataTemplate x:Key="SubItemTemplate">
			<StackPanel Orientation="Horizontal">
				<!--<Image Source="{Binding IconPath}" Width="20" Height="20"/>-->
				<TextBlock Text="{Binding Name}"/>
			</StackPanel>
		</DataTemplate>

		<telerik:HierarchicalDataTemplate x:Key="ItemTemplate"
										  ItemsSource="{Binding Items}"
										  ItemTemplate="{StaticResource SubItemTemplate}">
			<StackPanel Orientation="Horizontal">
				<!--<Image Source="{Binding IconPath}" Width="20" Height="20"/>-->
				<TextBlock Text="{Binding Name}"/>
			</StackPanel>
		</telerik:HierarchicalDataTemplate>
		
		<Style x:Key="ItemContainerStyle" TargetType="telerikNavigation:RadTreeViewItem">
			<Setter Property="IsExpanded" Value="True"/>
		</Style>
	</UserControl.Resources>
	<Grid x:Name="LayoutRoot">
		<StackPanel Orientation="Vertical">
		<telerikNavigation:RadTreeView x:Name="_TreeView" 
									   HorizontalAlignment="Left"
									   VerticalAlignment="Top"
									   ItemTemplate="{StaticResource ItemTemplate}" 
									   ItemContainerStyle="{StaticResource ItemContainerStyle}" 
									   IsExpandOnDblClickEnabled="False" 
									   IsLineEnabled="True">
		</telerikNavigation:RadTreeView>
			<Button Click="Button_Click" Content="Click Me"/>
		</StackPanel>
	</Grid>
</UserControl>
