<UserControl x:Class="FormDesigner.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:PDFViewSL="clr-namespace:O2S.Components.PDFView4NET.SL;assembly=O2S.Components.PDFView4NET.SL"
    mc:Ignorable="d">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <Border Grid.Row="0" Background="#FAFAFA">
            <StackPanel Orientation="Horizontal">
                <!--Open-->
                <Button Margin="2" Background="White" ToolTipService.ToolTip="Open file" Click="OpenFile_Click">
                    <Image Source="/Resources/fileopen16.png" Width="16" Height="16"/>
                </Button>

                <!--Save-->
                <Button Margin="2" Background="White" ToolTipService.ToolTip="Save file" Click="SaveFile_Click">
                    <Image Source="/Resources/filesave16.png" Width="16" Height="16"/>
                </Button>

                <!--Separator-->
                <Line Height="20" Width="1" Margin="2" X1="0" X2="0" Y1="0" Y2="20" Stroke="Black"/>

                <!--Pan & Scan-->
                <Button Margin="2" Background="White" ToolTipService.ToolTip="Pan and Scan" Click="PanAndScan_Click" Name="PanAndScanButton">
                    <Image Source="/Resources/Hand16.png" Width="16" Height="16"/>
                </Button>

                <!--Separator-->
                <Line Height="20" Width="1" Margin="2" X1="0" X2="0" Y1="0" Y2="20" Stroke="Black"/>

                <!--Edit annotations-->
                <Button Margin="2" Background="White" ToolTipService.ToolTip="Edit annotations" Click="EditAnnotations_Click">
                    <Image Source="/Resources/AnnotationEdit16.png" Width="16" Height="16"/>
                </Button>

                <!--TextBox field-->
                <Button Margin="2" Background="White" ToolTipService.ToolTip="TextBox field" Click="TextBoxField_Click">
                    <Image Source="/Resources/FieldTextBox.png" Width="16" Height="16"/>
                </Button>

                <!--CheckBox field-->
                <Button Margin="2" Background="White" ToolTipService.ToolTip="CheckBox field" Click="CheckBoxField_Click">
                    <Image Source="/Resources/FieldCheckBox.png" Width="16" Height="16"/>
                </Button>

                <!--RadioButton field-->
                <Button Margin="2" Background="White" ToolTipService.ToolTip="RadioButton field" Click="RadioButtonField_Click">
                    <Image Source="/Resources/FieldRadioButton.png" Width="16" Height="16"/>
                </Button>

                <!--ListBox field-->
                <Button Margin="2" Background="White" ToolTipService.ToolTip="ListBox field" Click="ListBoxField_Click">
                    <Image Source="/Resources/FieldListBox.png" Width="16" Height="16"/>
                </Button>

                <!--ComboBox field-->
                <Button Margin="2" Background="White" ToolTipService.ToolTip="ComboBox field" Click="ComboBoxField_Click">
                    <Image Source="/Resources/FieldComboBox.png" Width="16" Height="16"/>
                </Button>

                <!--Button field-->
                <Button Margin="2" Background="White" ToolTipService.ToolTip="PushButton field" Click="ButtonField_Click">
                    <Image Source="/Resources/FieldPushButton.png" Width="16" Height="16"/>
                </Button>

                <!--DigitalSignature field-->
                <Button Margin="2" Background="White" ToolTipService.ToolTip="DigitalSignature field" Click="DigitalSignatureField_Click">
                    <Image Source="/Resources/FieldDigitalSignature.png" Width="16" Height="16"/>
                </Button>

                <!--Separator-->
                <Line Height="20" Width="1" Margin="2" X1="0" X2="0" Y1="0" Y2="20" Stroke="Black"/>

                <!--Zoom-->
                <TextBlock Margin="2" Text="Zoom:" VerticalAlignment="Center"/>
                <ComboBox Margin="2" Width="80" ItemsSource="{Binding ZoomValues}" SelectedItem="{Binding ElementName=PdfControl, Path=Zoom, Mode=TwoWay}"/>
            </StackPanel>
        </Border>

        <PDFViewSL:PDFPageView Grid.Row="1" Name="PdfControl" Grid.Column="0" Margin="0" BorderThickness="1" BorderBrush="Black"/>
    </Grid>
</UserControl>