<UserControl
    x:Class="PdfViewerSamples.Orientation"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:PdfViewerSamples"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:c1="using:C1.Xaml.PdfViewer"
    mc:Ignorable="d"
    d:DesignHeight="300"
    d:DesignWidth="400">
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
        <c1:C1PdfViewer x:Name="pdfViewer" ViewMode="FitWidth" Orientation="Horizontal" Grid.Row="1" Grid.ColumnSpan="2"/>
        <StackPanel Orientation="Horizontal" VerticalAlignment="Center" >
            <TextBlock Text="{Binding ElementName=pdfViewer, Path=PageNumber}" FontSize="20" Foreground="{ThemeResource ApplicationForegroundThemeBrush}" />
            <TextBlock Text=" / " Foreground="{ThemeResource ApplicationForegroundThemeBrush}" FontSize="20"/>
            <TextBlock Text="{Binding ElementName=pdfViewer, Path=PageCount}" FontSize="20" Foreground="{ThemeResource ApplicationForegroundThemeBrush}" />
        </StackPanel>
        <StackPanel Orientation="Horizontal" Grid.Column="1">
            <TextBlock Text="Orientation: " VerticalAlignment="Center" FontSize="16" Margin="5 0" />
            <ComboBox x:Name="cmbOrientation" Width="120" SelectionChanged="cmbOrientation_SelectionChanged" Margin="5 0">
                <ComboBoxItem>Horizontal</ComboBoxItem>
                <ComboBoxItem>Vertical</ComboBoxItem>
            </ComboBox>
        </StackPanel>
        
    </Grid>
</UserControl>
