<Window x:Class="WpfApp99.MainWindow"
        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:local="clr-namespace:WpfApp99"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
		mc:Ignorable="d"
        Title="MainWindow"
		Height="500" Width="400">

    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/WpfApp99;component/ResourceTemplate.xaml" />
            </ResourceDictionary.MergedDictionaries>

			<!-- Tree View Sub B Item -->
			<HierarchicalDataTemplate	x:Key="SubB">
				<TextBlock Grid.Column="0" Text="{Binding Name}" VerticalAlignment="Center" />
			</HierarchicalDataTemplate>

			<!-- Tree View Sub A Item -->
			<HierarchicalDataTemplate x:Key="SubA" ItemsSource="{Binding SubB}" ItemTemplate="{StaticResource SubB}" >
				<TextBlock Grid.Column="0" Text="{Binding Name}" VerticalAlignment="Center" />
			</HierarchicalDataTemplate>

			<!-- Tree View Main(=All) -->
			<HierarchicalDataTemplate x:Key="Main" ItemsSource="{Binding SubA}" ItemTemplate="{StaticResource SubA}">
				<TextBlock Grid.Column="0" Text="{Binding Name}" VerticalAlignment="Center" />
			</HierarchicalDataTemplate>

		</ResourceDictionary>
    </Window.Resources>

    <Grid>
		<telerik:RadTreeView Grid.Row="1"
							 ItemsSource="{Binding Main}"
							 ItemTemplate="{StaticResource Main}"
							 >
			<telerik:RadTreeView.Resources>
				<Style TargetType="telerik:RadTreeViewItem" BasedOn="{StaticResource RadTreeViewItemStyle}">
					<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
					<Setter Property="Margin" Value="0 5"/>
					<Setter Property="IsExpanded" Value="True"/>
				</Style>
			</telerik:RadTreeView.Resources>
		</telerik:RadTreeView>
	</Grid>
</Window>
