<Window x:Class="FormFill.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:PageViewWPF="clr-namespace:O2S.Components.PDFView4NET.WPF;assembly=O2S.Components.PDFView4NET.WPF.NETCore"
        Title="MainWindow" Height="350" Width="525" Loaded="Window_Loaded">
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <!--pdf file-->
        <TextBlock Grid.Row="0" Grid.Column="0" Margin="4" VerticalAlignment="Center" Text="PDF file:"/>
        <Grid Grid.Row="0" Grid.Column="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>

            <TextBox Margin="4" Name="FileTextBox" IsEnabled="False"/>
            <Button Grid.Column="1" Height="24" Width="28" Margin="4" Content="..." Click="Browse_Click"/>
            <Button Grid.Column="2" Height="24" Margin="4" Content="Save form" Click="Save_Click"/>
        </Grid>

        <!--control-->
        <PageViewWPF:PDFPageView Name="PdfControl" Grid.Row="1" Grid.ColumnSpan="2" Margin="4" PageDisplayLayout="OneColumn" WorkMode="PanAndScan"/>
    </Grid>
</Window>
