<UserControl xmlns="https://github.com/avaloniaui"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             x:Class="ControlCatalog.Pages.TreeViewPage">
  <StackPanel Orientation="Vertical" Spacing="4">
    <TextBlock Classes="h1">TreeView</TextBlock>
    <TextBlock Classes="h2">Displays a hierachical tree of data.</TextBlock>

    <StackPanel Orientation="Horizontal"
              Margin="0,16,0,0"
              HorizontalAlignment="Center"
              Spacing="16">
      <TreeView SelectionMode="Multiple" Items="{Binding}" Width="250" Height="350">
        <TreeView.ItemTemplate>
          <TreeDataTemplate ItemsSource="{Binding Children}">
            <TextBlock Text="{Binding Header}"/>
          </TreeDataTemplate>
        </TreeView.ItemTemplate>
      </TreeView>
    </StackPanel>
  </StackPanel>
</UserControl>
