<Page
    x:Class="RichTextBoxSamples.AppBarDemo"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:RichTextBoxSamples"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:c1RTB="using:C1.Xaml.RichTextBox"
    mc:Ignorable="d">
    <Grid>
        <c1RTB:C1RichTextBox x:Name="rtb" BorderThickness="2" BorderBrush="DarkGray" RequestNavigate="rtb_RequestNavigate" />
    </Grid>
    <Page.BottomAppBar>
        <AppBar x:Name="bottomAppBar" Padding="10,0,10,0" >
            <Grid>
                <StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
                    <Button x:Name="btnInsertTable" Style="{StaticResource TableAppBarButtonStyle}" Click="btnInsertTable_Click">
                        <TextBlock Text="&#x25A6;" FontSize="26" FontWeight="Light" Margin="-1 -2 0 0"/>
                    </Button>
                    <Button x:Name="btnInsertImage" Style="{StaticResource PictureAppBarButtonStyle}" Click="btnInsertPicture_Click" />
                    <Button x:Name="btnInsertHyperlink" Style="{StaticResource HyperlinkAppBarButtonStyle}" Click="btnInsertHyperlink_Click"/>
                    <Line X1="0" Y1="60" Margin="0,10,0,0" Stroke="{ThemeResource ApplicationForegroundThemeBrush}" StrokeThickness="2" />
                    <Button x:Name="btnAlign" Style="{StaticResource AlignAppBarButtonStyle}" Click="btnAlign_Click"/>
                </StackPanel>
                <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                    <c1RTB:C1BoldTool x:Name="btnBold" Style="{StaticResource BoldAppBarButtonStyle}" />
                    <c1RTB:C1ItalicTool x:Name="btnItalic" Style="{StaticResource ItalicAppBarButtonStyle}" />
                    <c1RTB:C1UnderlineTool x:Name="btnUnderline" Style="{StaticResource UnderlineAppBarButtonStyle}" />
                    <Button x:Name="btnFontColor" Style="{StaticResource FontColorAppBarButtonStyle}" Click="btnFontColor_Click"/>
                    <Button x:Name="btnHighlight" Style="{StaticResource HighlightAppBarButtonStyle}" Click="btnHighlight_Click"/>
                    <Button x:Name="btnMore" Style="{StaticResource MoreAppBarButtonStyle}" Click="btnMore_Click"/>
                </StackPanel>
            </Grid>
        </AppBar>
    </Page.BottomAppBar>
</Page>