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

    <Grid Background="LightGray">
        <TextBlock Name="textBlock"
                   FontFamily="Times New Roman"
                   FontSize="96"
                   HorizontalAlignment="Center"
                   VerticalAlignment="Center">
            <Run>Pasek formatowania tekstu</Run>
        </TextBlock>
    </Grid>
    
    <Page.BottomAppBar>
        <AppBar>
            <StackPanel Orientation="Horizontal">
                <CheckBox x:ConnectionId='1' Style="{StaticResource BoldAppBarButtonStyle}"
                          AutomationProperties.Name="Pogrubienie"
                                                               
                                                                  />

                <CheckBox x:ConnectionId='2' Style="{StaticResource ItalicAppBarButtonStyle}"
                          AutomationProperties.Name="Kursywa"
                                                                 
                                                                    />

                <CheckBox x:ConnectionId='3' Style="{StaticResource UnderlineAppBarButtonStyle}"
                          AutomationProperties.Name="Podkreślenie"
                                                                    
                                                                       />
                
                <Polyline Points="0 12, 0 48"
                          Stroke="{StaticResource ApplicationForegroundThemeBrush}"
                          VerticalAlignment="Top" />
                
                <RadioButton x:ConnectionId='4' Name="redRadioButton"
                             Style="{StaticResource FontColorAppBarButtonStyle}"
                             Foreground="Red"
                             AutomationProperties.Name="Czerwony"
                                                                           />

                <RadioButton x:ConnectionId='5' Style="{StaticResource FontColorAppBarButtonStyle}"
                             Foreground="Green"
                             AutomationProperties.Name="Zielony"
                                                                           />

                <RadioButton x:ConnectionId='6' Style="{StaticResource FontColorAppBarButtonStyle}"
                             Foreground="Blue"
                             AutomationProperties.Name="Niebieski"
                                                                           />
            </StackPanel>
        </AppBar>
    </Page.BottomAppBar>
</Page>

