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

    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition />
        </Grid.RowDefinitions>
        <TextBlock Text="This demo shows how to open and save HTML and RTF files" FontSize="20" Margin="20 10"/>
        <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="20 10">
            <Button x:Name="btnOpen" Content="Open" Click="btnOpen_Click" />
            <Button x:Name="btnSave" Content="Save" Click="btnSave_Click" />
        </StackPanel>
        <TextBlock x:Name="TextStatus" FontSize="20" Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Bottom"/>
        <RichTextBox:C1RichTextBox x:Name="c1RichTextBox1" Grid.Row="2" Margin="20"/>
    </Grid>
</Page>
