<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="PdfViewerSamples.BookmarksDemo" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="300" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>

        <ScrollViewer Width="140" Padding="0" Background="White" Margin="0,0,10,0">
            <c1:C1TreeView ItemsSource="{Binding Bookmarks, ElementName=pdfviewer}" SelectionMode="Single" SelectionChanged="C1TreeView_SelectionChanged" BorderThickness="0">
                <c1:C1TreeView.ItemTemplate>
                    <HierarchicalDataTemplate ItemsSource="{Binding Children}">
                        <Border>
                            <TextBlock Text="{Binding Title}" />
                        </Border>
                    </HierarchicalDataTemplate>
                </c1:C1TreeView.ItemTemplate>
            </c1:C1TreeView>
        </ScrollViewer>

        <c1:C1PdfViewer x:Name="pdfviewer" OpenButtonVisibility="Visible" Grid.Column="1" />
    </Grid>
</UserControl>