<Window x:Class="DataBinding.BoundTreeViewDataSet"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="BoundTreeView" Height="300" Width="300"
    >
    <Grid>
      <TreeView Name="treeCategories" Margin="5">
        <TreeView.ItemTemplate>
          <HierarchicalDataTemplate ItemsSource="{Binding CategoryProduct}">
            <TextBlock Text="{Binding CategoryName}" Padding="2" />
            <HierarchicalDataTemplate.ItemTemplate>
              <DataTemplate>
                <TextBlock Text="{Binding ModelName}" Padding="2" />
              </DataTemplate>
            </HierarchicalDataTemplate.ItemTemplate>
          </HierarchicalDataTemplate>
        </TreeView.ItemTemplate>
      </TreeView>
    </Grid>
</Window>
