<UserControl
    x:Class="PdfViewerSamples.LargeFile"
    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"
    xmlns:c1Pdf="using:C1.Xaml.PdfViewer"
    mc:Ignorable="d">
    <Grid>
        <StackPanel x:Name="loading" VerticalAlignment="Center">
            <TextBlock Text="Downloading document from ComponentOne..." TextAlignment="Center"/>
            <c1:C1ProgressBar IsIndeterminate="True" IndeterminateForeground="#FF2C383D" Height="4"/>
        </StackPanel>
        <Button x:Name="retry" HorizontalAlignment="Center" VerticalAlignment="Center" Content="Retry" Visibility="Collapsed" Click="Retry_Click" />
        <Grid x:Name="viewer">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <c1Pdf:C1PdfViewer x:Name="pdfViewer" ViewMode="FitWidth" Grid.Row="1" Grid.ColumnSpan="2"/>
            <StackPanel Orientation="Horizontal"  VerticalAlignment="Center" HorizontalAlignment="Left" >
                <TextBlock Text="{Binding ElementName=pdfViewer, Path=PageNumber}" FontSize="20" Foreground="{ThemeResource ApplicationForegroundThemeBrush}" VerticalAlignment="Center" Margin="5"/>
                <TextBlock Text=" / " Foreground="{ThemeResource ApplicationForegroundThemeBrush}" FontSize="20" VerticalAlignment="Center"/>
                <TextBlock Text="{Binding ElementName=pdfViewer, Path=PageCount}" FontSize="20" Foreground="{ThemeResource ApplicationForegroundThemeBrush}" VerticalAlignment="Center" Margin="5" />
            </StackPanel>
        </Grid>
    </Grid>
</UserControl>