<Window x:Class="WPF_TtreeView.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:ds="clr-namespace:WPF_TtreeView"
    xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
    Title="Window1" Height="300" Width="300">
    <Window.Resources>
        <ds:TreeDataSource x:Key="TreeAreaDS" />
        <HierarchicalDataTemplate x:Key="batteryTemplate" ItemsSource="{Binding wellList}" >
            <TextBlock Text="{Binding Name}" Foreground="Green" FontStyle="Italic" />
        </HierarchicalDataTemplate>
        <HierarchicalDataTemplate x:Key="areaTemplate"  ItemsSource="{Binding batteryList}"
				ItemTemplate="{StaticResource batteryTemplate}">
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="{Binding Name}" Foreground="Green" FontStyle="Italic" />
            </StackPanel>
        </HierarchicalDataTemplate>
    </Window.Resources>
    <StackPanel>

        <telerik:RadTreeView x:Name="tree" SelectionMode="Multiple" ScrollViewer.VerticalScrollBarVisibility="Visible"
				IsEditable="True" ItemsSource="{Binding Source={StaticResource TreeAreaDS}}"
				ItemTemplate="{StaticResource areaTemplate}">
            <telerik:RadTreeView.ItemEditTemplate>
                <DataTemplate>
                    <TextBox Text="{Binding Name,Mode=TwoWay}" />
                </DataTemplate>
            </telerik:RadTreeView.ItemEditTemplate>
        </telerik:RadTreeView>
        <Border BorderBrush="Green" BorderThickness="3" Height="150" Width="200">
            <telerik:RadTreeView  SelectionMode="Multiple" ScrollViewer.VerticalScrollBarVisibility="Visible"
				IsEditable="True" ItemsSource="{Binding Source={StaticResource TreeAreaDS}}"
				ItemTemplate="{StaticResource areaTemplate}">
                <telerik:RadTreeView.ItemEditTemplate>
                    <DataTemplate>
                        <TextBox Text="{Binding Name,Mode=TwoWay}" />
                    </DataTemplate>
                </telerik:RadTreeView.ItemEditTemplate>
            </telerik:RadTreeView>
        </Border>
    </StackPanel>
</Window>
