<Page
    x:Class="AppBarPad.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:AppBarPad"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
        <TextBox Name="txtbox"
                 IsEnabled="False"
                 FontSize="24"
                 AcceptsReturn="True" />
    </Grid>

    <Page.BottomAppBar>
        <AppBar>
            <Grid>
                <StackPanel Orientation="Horizontal"
                            HorizontalAlignment="Left">
                    
                    <Button Style="{StaticResource FontIncreaseAppBarButtonStyle}"
                            AutomationProperties.Name="Zwiększ czcionkę"
                            Click="OnFontIncreaseAppBarButtonClick" />
                    
                    <Button Style="{StaticResource FontDecreaseAppBarButtonStyle}"
                            AutomationProperties.Name="Zmniejsz czcionkę"
                            Click="OnFontDecreaseAppBarButtonClick" />

                    <Button Style="{StaticResource SettingsAppBarButtonStyle}"
                            AutomationProperties.Name="Opcje zawijania"
                            Click="OnWrapOptionAppBarButtonClick" />
                </StackPanel>

                <StackPanel Orientation="Horizontal"
                            HorizontalAlignment="Right">

                    <Button Style="{StaticResource OpenFileAppBarButtonStyle}"
                            AutomationProperties.Name="Otwórz plik"
                            Click="OnOpenAppBarButtonClick" />

                    <Button Style="{StaticResource SaveAppBarButtonStyle}"
                            AutomationProperties.Name="Zapisz jako"
                            Click="OnSaveAsAppBarButtonClick" />
                </StackPanel>
            </Grid>
        </AppBar>
    </Page.BottomAppBar>
</Page>
