<UserControl x:Class="PdfDocumentSourceSamples.ExportPage"
        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:local="clr-namespace:PdfDocumentSourceSamples"
        xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml"
        mc:Ignorable="d">
    <Grid Margin="5">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition/>
        </Grid.RowDefinitions>

        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="5"/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="23"/>
                <RowDefinition Height="5"/>
                <RowDefinition Height="23"/>
                <RowDefinition Height="5"/>
                <RowDefinition Height="23"/>
            </Grid.RowDefinitions>

            <TextBlock Width="Auto" Text="PDF File:" VerticalAlignment="Center"/>
            <c1:C1FilePicker x:Name="fpFile" Grid.Column="2" Filter="PDF Files (*.pdf)|*.pdf|All Files (*.*)|*.*" />

            <TextBlock Width="Auto" Grid.Row="2" Text="Export Filter:" VerticalAlignment="Center"/>
            <c1:C1ComboBox x:Name="cbExportFilter" Grid.Row="2" Grid.Column="2" Width="200" HorizontalAlignment="Left"/>

            <StackPanel Grid.Row="4" Grid.Column="2" Orientation="Horizontal">
                <RadioButton x:Name="rbtnPagesAll" Content="All Pages" VerticalAlignment="Center" Margin="0,0,20,0" IsChecked="True"/>
                <RadioButton x:Name="rbtnPagesRange" Content="Range of Pages" VerticalAlignment="Center" Margin="0,0,5,0"/>
                <TextBox x:Name="tbPagesRange" Width="100" Height ="23" VerticalAlignment="Center"/>
            </StackPanel>
        </Grid>

        <StackPanel Grid.Row="1" Orientation="Horizontal" Height="23" HorizontalAlignment="Right">
            <Button x:Name="btnExport" Width="75" Content="Export..." IsDefault="True" Click="btnExport_Click"/>
        </StackPanel>
    </Grid>
</UserControl>
