
<UserControl x:Class="C1TreeViewVirtualizationSample.MainPage"
             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"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
             d:DesignHeight="300"
             d:DesignWidth="400"
             mc:Ignorable="d">

    <Grid x:Name="LayoutRoot" Background="White">
        <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>
</UserControl>