<Page
    x:Class="PdfCreator.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"
    mc:Ignorable="d">

    <Page.Resources>
        <Style x:Key="TitleTextStyle" TargetType="TextBlock">
            <Setter Property="FontWeight" Value="Light" />
            <Setter Property="FontFamily" Value="Segoe UI Light" />
            <Setter Property="Foreground" Value="White" />
            <Setter Property="FontSize" Value="28" />
        </Style>
        <Style TargetType="Button" >
            <Setter Property="Width" Value="150" />
            <Setter Property="Background" Value="Black" />
        </Style>
        <Style TargetType="StackPanel" >
            <Setter Property="Orientation" Value="Horizontal" />
        </Style>
    </Page.Resources>

    <Grid Name="LayoutRoot" Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
        <Grid.RowDefinitions>
            <RowDefinition Height="80" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Grid  Background="#FF2C383D">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            <StackPanel Margin="50 0 0 0">
                <Image Stretch="None" Source="Assets/C1PDF_48px.png" AutomationProperties.Name="Product Logo" HorizontalAlignment="Left" Margin="0 0 -5 0"/>
                <TextBlock Text="C1PDF"  Margin="15 0 0 0" VerticalAlignment="Center" Style="{StaticResource TitleTextStyle}" Name="FileName"/>
            </StackPanel>
            <StackPanel Margin="0 0 50 0" Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Right">
                <Button Name="_btnOpen" Content="Open Pdf..." Click="_btnOpen_Click_1" />
                <Button Name="_btnAdd" Content="Add..." Click="_btnAdd_Click_1" />
                <Button Name="_btnRemove" Content="Remove" Click="_btnRemove_Click_1"/>
                <Button Name="_btnView" Content="View" Click="_btnView_Click_1"/>
            </StackPanel>
        </Grid>
        <Grid 
            Name="_preview"
            Grid.RowSpan="2" 
            Visibility="Collapsed" 
            Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition />
            </Grid.RowDefinitions>

            <StackPanel>
                <TextBlock Text="C1Pdf Preview" FontSize="36" Margin="0 0 40 0"/>
                <StackPanel VerticalAlignment="Bottom">
                    <Button Name="_btnClosePreview" Content="Close" Click="_btnClosePreview_Click_1" />
                </StackPanel>
            </StackPanel>

            <TextBox 
                Grid.Row="1" 
                Name="_tbContent" 
                IsReadOnly="True" 
                AcceptsReturn="True" 
                FontFamily="Courier New" 
                Background="White" />
        </Grid>
    </Grid>
</Page>
