<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.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"
	mc:Ignorable="d"
	x:Class="PDFTron.SilverDox.Samples.SubControls.OutlineTreeControl"
	d:DesignWidth="285" d:DesignHeight="298">

	<Grid x:Name="LayoutRoot">
        <sdk:TreeView x:Name="OutlineTree" ItemsSource="{Binding Document.Bookmarks}" 
		SelectedItemChanged="OutlineTreeControl_SelectedItemChanged" 
		DataContext="{Binding}" BorderBrush="Silver">
            <sdk:TreeView.ItemTemplate>
				<sdk:HierarchicalDataTemplate  ItemsSource="{Binding Children}">
                    <TextBlock Text="{Binding Name}" Padding="0"  >
                        <ToolTipService.ToolTip>
                        <ToolTip Placement="Mouse">
                            <TextBlock Text="{Binding Name}"/>
                        </ToolTip>
                    </ToolTipService.ToolTip>
                    </TextBlock>
                </sdk:HierarchicalDataTemplate>
			</sdk:TreeView.ItemTemplate>
		</sdk:TreeView>
	</Grid>
</UserControl>