<Page
    x:Class="HelloWord.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" />
            <!--<Setter Property="Background" Value="DarkGray" />-->
        </Style>
    </Page.Resources>

    <Grid Name="LayoutRoot" Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
        <Grid.RowDefinitions>
            <RowDefinition Height="52" />
            <RowDefinition Height="28" />
            <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/C1Excel_48px.png" AutomationProperties.Name="Product Logo" HorizontalAlignment="Left" Margin="0 0 -5 0"/>
                <TextBlock Text="C1Excel"  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 Excel..." Click="_btnOpen_Click" />
                <Button Name="_btnHello" Content="Hello sample" Click="_btnHello_Click" />
                <Button Name="_btnView" Content="Save..." Click="_btnSave_Click"/>
            </StackPanel>
        </Grid>
        <TextBox 
                Grid.Row="1"
                Grid.ColumnSpan="2"
                Name="_tbContent" 
                Text="Empty"
                IsReadOnly="True" 
                AcceptsReturn="True" 
                FontFamily="Courier New" 
                Background="White" />
        <Grid>
        </Grid>
    </Grid>
</Page>
