<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" RequestedTheme="Light">
    <Page.Resources>
        <local:Strings x:Key="Strings"/>
    </Page.Resources>
    <Grid>
        <c1RTB:C1RichTextBox x:Name="rtb" BorderThickness="2" BorderBrush="DarkGray" RequestNavigate="rtb_RequestNavigate" />
    </Grid>
    <Page.BottomAppBar>
        <CommandBar x:Name="bottomAppBar">
            <c1RTB:C1BoldTool x:Name="btnBold" />
            <c1RTB:C1ItalicTool x:Name="btnItalic" />
            <c1RTB:C1UnderlineTool x:Name="btnUnderline" />
            <AppBarButton x:Name="btnPicture" Icon="Pictures" Click="btnPicture_Click" Label="{Binding InsertPic_Content, Source={StaticResource Strings}}" />
        </CommandBar>
    </Page.BottomAppBar>
</Page>