<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="PrintSettings.MainPage" mc:Ignorable="d" d:DesignHeight="384" d:DesignWidth="541" 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:c1="http://schemas.componentone.com/winfx/2006/xaml" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit">

    <Grid x:Name="LayoutRoot" Background="White" Loaded="LayoutRoot_Loaded">

        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="auto" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        
        <StackPanel Orientation="Horizontal">
            <Button Content="Load Excel File..." Name="_btnLoad" Width="120" Margin="0 0 12 0" Click="_btnLoad_Click" />
            <Button Content="Save Excel File..." Name="_btnSave" Width="118" Click="_btnSave_Click" IsEnabled="False" />
        </StackPanel>

        <StackPanel Orientation="Horizontal" Grid.ColumnSpan="2" Grid.Row="4">
            <TextBlock Name="_lblStatus" Text="Ready" VerticalAlignment="Center" Margin="6" />
        </StackPanel>
        <StackPanel Grid.Row="1" Height="61" HorizontalAlignment="Left" Margin="0,11,0,0" Name="_stackPanelKind" VerticalAlignment="Top" Width="407" Grid.ColumnSpan="2" Orientation="Horizontal" />
        <Grid Name="grid1" Grid.ColumnSpan="2" Margin="16,18,12,0" Grid.Row="1" Background="#FFDAE3D9" Height="62" VerticalAlignment="Top">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="16" />
                <ColumnDefinition Width="14" />
                <ColumnDefinition Width="163" />
                <ColumnDefinition Width="15" />
                <ColumnDefinition Width="0" />
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="192*" />
            </Grid.ColumnDefinitions>
            <sdk:Label HorizontalAlignment="Left" Name="_lbKind" VerticalAlignment="Top" Content="Paper Size/Orientation" Grid.Column="1" Grid.ColumnSpan="2" />
            <ComboBox Height="23" Name="_cmbPaperSize" Margin="0,15,0,8" Grid.Row="1" Width="177" Grid.Column="1" Grid.ColumnSpan="2" />
            <RadioButton Content="Portrait" Height="16" Name="_rdPortrait" Grid.Column="5" Margin="27,4,68,4" Grid.Row="1" IsChecked="True" />
            <RadioButton Content="Landscape" Height="16" Name="_rdLandscape" Grid.Column="6" Grid.Row="1" />
        </Grid>
        <StackPanel Grid.Row="2" Height="61" HorizontalAlignment="Left" Margin="0,11,0,0" Name="_stackPanelScaling" VerticalAlignment="Top" Width="407" Grid.ColumnSpan="2" Orientation="Horizontal" />
        <Grid Name="grid2" Background="#FFDAE3D9" Height="61" Grid.ColumnSpan="2" Margin="16,11,12,0" Grid.Row="2">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="192*" />
            </Grid.ColumnDefinitions>
            <sdk:Label HorizontalAlignment="Left" Name="_lbScaling" VerticalAlignment="Top" Content="Scaling" Grid.Column="1" Grid.ColumnSpan="2" />
            <RadioButton Content="Adjust to" Grid.Column="1" Grid.Row="1" Height="16" HorizontalAlignment="Left" Margin="18,8,0,0" Name="_rdAdjust" VerticalAlignment="Top" IsChecked="True" />
            <c1:C1NumericBox Grid.Column="1" Grid.Row="1" Height="22" HorizontalAlignment="Left" Margin="97,2,0,0" Name="_udPercentSize" VerticalAlignment="Top" Width="44" IsReadOnly="True" Value="100" Maximum="500" />
            <sdk:Label Grid.Column="1" Grid.Row="1" Height="16" HorizontalAlignment="Left" Margin="147,8,0,0" Name="_lbAdjust" VerticalAlignment="Top" Width="123" Content="% normal size" IsEnabled="False" />
            <RadioButton Content="Fit to" Grid.Column="1" Grid.Row="1" Height="16" HorizontalAlignment="Left" Margin="234,8,0,0" Name="_rdFit" VerticalAlignment="Top" />
            <c1:C1NumericBox Grid.Column="1" Height="22" HorizontalAlignment="Left" IsReadOnly="True" Margin="289,2,0,0" Name="_udAcross" Value="0" VerticalAlignment="Top" Width="44" Grid.Row="1" />
            <sdk:Label Grid.Column="1" Grid.Row="1" Height="16" HorizontalAlignment="Left" Margin="339,8,0,0" Name="_lbPages" VerticalAlignment="Top" Width="120" Content="pages wide by" />
            <c1:C1NumericBox Grid.Column="1" Height="22" HorizontalAlignment="Left" IsReadOnly="True" Margin="427,2,0,0" Name="_udDown" Value="0" VerticalAlignment="Top" Width="44" Grid.Row="1" />
        </Grid>
        <StackPanel Grid.Row="3" Height="61" HorizontalAlignment="Left" Margin="0,11,0,0" Name="_stackPanelMargings" VerticalAlignment="Top" Width="407" Grid.ColumnSpan="2" Orientation="Horizontal" />
        <Grid Name="grid3" Background="#FFDAE3D9" Height="61" Grid.ColumnSpan="2" Margin="16,11,12,0" Grid.Row="3" VerticalAlignment="Top">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="192*" />
            </Grid.ColumnDefinitions>
            <sdk:Label HorizontalAlignment="Left" Name="_lbMargings" VerticalAlignment="Top" Content="Margings" Grid.Column="1" Grid.ColumnSpan="2" />
            <sdk:Label Grid.Column="1" Grid.Row="1" Height="16" HorizontalAlignment="Left" Margin="18,6,0,0" Name="_lbLeft" VerticalAlignment="Top" Width="71" Content="Left" />
            <c1:C1NumericBox Grid.Column="1" HorizontalAlignment="Left" IsReadOnly="True" Margin="83,0,0,23" Maximum="100" Name="_udLeftMrgs" Value="1" Width="67" Grid.Row="1" Minimum="-1" />
            <sdk:Label Content="Right" Grid.Column="1" Grid.Row="1" Height="16" HorizontalAlignment="Left" Margin="18,29,0,0" Name="_lbRight" VerticalAlignment="Top" Width="71" />
            <c1:C1NumericBox Grid.Column="1" Height="22" HorizontalAlignment="Left" IsReadOnly="True" Margin="83,23,0,0" Maximum="100" Name="_udRightMrgs" Value="1" VerticalAlignment="Top" Width="67" Grid.Row="1" />
            <sdk:Label Content="Top" Grid.Column="1" Grid.Row="1" Height="16" HorizontalAlignment="Left" Margin="193,2,0,0" Name="_lbTop" VerticalAlignment="Top" Width="71" />
            <c1:C1NumericBox Grid.Column="1" Grid.RowSpan="2" Height="22" HorizontalAlignment="Left" IsReadOnly="True" Margin="258,12,0,0" Maximum="100" Name="_udTopMrgs" Value="1" VerticalAlignment="Top" Width="62" />
            <sdk:Label Content="Bottom" Grid.Column="1" Grid.Row="1" Height="16" HorizontalAlignment="Left" Margin="193,25,0,0" Name="_lbBottom" VerticalAlignment="Top" Width="71" />
            <c1:C1NumericBox Grid.Column="1" Grid.Row="1" Height="22" HorizontalAlignment="Left" IsReadOnly="True" Margin="258,19,0,0" Maximum="100" Name="_udBottomMrgs" Value="1" VerticalAlignment="Top" Width="62" />
            <sdk:Label Content="Header" Grid.Column="1" Grid.Row="1" Height="16" HorizontalAlignment="Left" Margin="372,0,0,0" Name="_lbHeader" VerticalAlignment="Top" Width="71" />
            <c1:C1NumericBox Grid.Column="1" Grid.RowSpan="2" Height="22" HorizontalAlignment="Left" IsReadOnly="True" Margin="437,10,0,0" Maximum="100" Name="_udHeader" Value="1" VerticalAlignment="Top" Width="58" />
            <sdk:Label Content="Footer" Grid.Column="1" Grid.Row="1" Height="16" HorizontalAlignment="Left" Margin="372,23,0,0" Name="_lbFooter" VerticalAlignment="Top" Width="71" />
            <c1:C1NumericBox Grid.Column="1" Grid.Row="1" Height="22" HorizontalAlignment="Left" IsReadOnly="True" Margin="437,17,0,0" Maximum="100" Name="_udFooter" Value="1" VerticalAlignment="Top" Width="58" IsEnabled="True" />
        </Grid>
        <TextBox Grid.Row="3" Height="23" HorizontalAlignment="Left" Margin="146,88,0,0" Name="_txtHeader" VerticalAlignment="Top" Width="383" Grid.ColumnSpan="2" />
        <TextBox Grid.ColumnSpan="2" Height="23" HorizontalAlignment="Left" Margin="146,117,0,0" Name="_txtFooter" VerticalAlignment="Top" Width="383" Grid.Row="3" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="146,146,0,0" Name="_txtStartPage" VerticalAlignment="Top" Width="140" Grid.Row="3" Grid.ColumnSpan="2" Text="Auto" />
        <sdk:Label Grid.Row="3" Height="16" HorizontalAlignment="Left" Margin="16,92,0,0" Name="_lbPageHeader" VerticalAlignment="Top" Width="120" Content="Page Header" IsEnabled="False" />
        <sdk:Label Content="Page Footer" Height="16" HorizontalAlignment="Left" IsEnabled="False" Margin="16,123,0,0" Name="_lbPageFooter" VerticalAlignment="Top" Width="120" Grid.Row="3" />
        <sdk:Label Content="First page number" Height="16" HorizontalAlignment="Left" IsEnabled="False" Margin="16,152,0,0" Name="_lbFirstPage" VerticalAlignment="Top" Width="120" Grid.Row="3" />
    </Grid>
</UserControl>