<Window x:Class="PDFViewWPFTestCS.OpenUrlDlg"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="using:PDFViewWPFTestCS"
        Title="Open PDF From URL" Width="300" Height="350"
        WindowStartupLocation="CenterOwner" ShowInTaskbar="False" 
        Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <TextBlock Margin="5" TextWrapping="Wrap" Text="PDFNet supports opening PDF files via HTTP, and will display the PDF as it is downloaded. If the user scrolls to a page in the document that is not yet downloaded, PDFNet will download the displayed page before other pages, providing a responsive viewing experience. Note that the PDF files must be linearized, or saved with 'Fast Web View' enabled - if not the entire file must be downloaded before it can be viewed. To save a linearized file using PDFNet, use the e_linearized option."/>
        <Grid Height="Auto" Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Label Grid.Column="0" Margin="5,5,5,5" Content="Address:"/>
            <TextBox Grid.Column="1" Margin="0,5,5,5" Name="m_url"/>
        </Grid>
        <Grid Height="Auto" Grid.Row="2">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Label Grid.Column="0" Margin="5,5,5,5" Content="PDF Password:"/>
            <TextBox Grid.Column="1" Margin="0,5,5,5" Name="m_pass"/>
        </Grid>
        <Grid Height="Auto" Grid.Row="3">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <Button Grid.Column="1" Margin="10,5,10,10" Width="70" Name="m_ok" Content="OK" HorizontalContentAlignment="Center" Click="m_ok_Click"/>
            <Button Grid.Column="2" Margin="10,5,10,10" Width="70" Name="m_cancel" Content="Cancel" HorizontalContentAlignment="Center" Click="m_cancel_Click"/>
        </Grid>
    </Grid>
</Window>
