<UserControl
    x:Class="PdfViewerSamples.BookmarksDemo"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:PdfViewerSamples"
    xmlns:c1="using:C1.Xaml"
    xmlns:c1pdf="using:C1.Xaml.PdfViewer"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">
    
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>

        <ScrollViewer Width="250" Padding="0" Margin="0,0,10,0">
            <c1:C1TreeView ItemsSource="{Binding}" ItemClick="C1TreeView_ItemClick" BorderThickness="0" x:Name="treeView">
                <c1:C1TreeView.ItemTemplate>
   
                        <DataTemplate>
                            <TextBlock Text="{Binding Title}" TextWrapping="Wrap"/>
                        </DataTemplate>
   
                </c1:C1TreeView.ItemTemplate>
                
            </c1:C1TreeView>
        </ScrollViewer>

        <c1pdf:C1PdfViewer x:Name="pdfViewer" Grid.Column="1" ViewMode="FitWidth"  />
    </Grid>
</UserControl>
