<Window x:Class="TreeViewExample.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml"
        Title="MainWindow"
        WindowStartupLocation="CenterScreen">

    <Grid>
        <c1:C1TreeView x:Name="tree"
                       Width="400"
                       Height="300"
                       AutoSearchBufferChanged="tree_AutoSearchBufferChanged"
                       ExpandOnClick="True"
                       IsVirtualizing="True"
                       ItemsSource="{Binding}">
            <c1:C1TreeView.ItemTemplate>
                <c1:C1HierarchicalDataTemplate ItemsSource="{Binding ChildProducts}">
                    <TextBlock Text="{Binding Name}" />
                </c1:C1HierarchicalDataTemplate>
            </c1:C1TreeView.ItemTemplate>
        </c1:C1TreeView>
    </Grid>
</Window>
