<UserControl
    x:Class="PdfViewerSamples.Printing"
    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.PdfViewer"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300"
    d:DesignWidth="500">
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <Button x:Name="btnPrint" Content="Print" HorizontalAlignment="Left" Click="btnPrint_Click"/>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
            <TextBlock Text="Render Mode: " VerticalAlignment="Center" FontSize="16" Margin="5 0" />
            <ComboBox x:Name="renderModeBox" Width="150" HorizontalAlignment="Left" SelectionChanged="renderModeBox_SelectionChanged" Margin="5 0"/>
            <Button x:Name="btnLoad" Content=" Load Pdf... " HorizontalAlignment="Right" VerticalAlignment="Top" Click="btnLoad_Click" />
        </StackPanel>
        <c1:C1PdfViewer x:Name="c1PdfViewer1" ViewMode="FitWidth" Grid.Row="1"/>
    </Grid>
</UserControl>
