﻿<UserControl x:Class="Telerik.Windows.Examples.RichTextBox.SyntaxHighlight.Example"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:telerikEditor="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Documents"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="600" Loaded="SyntaxHighlighTextBox_Loaded">

    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <StackPanel Orientation="Horizontal">
            <Button Margin="4" Click="LoadXaml_Click">Xaml</Button>
            <Button Margin="4" Click="LoadCS_Click">C#</Button>
            <ToggleButton Height="20" Width="20" HorizontalAlignment="Left" x:Name="ToggleFormattingSymbols" Click="ToggleFormattingSymbols_Click" Margin="4">
                <Image Source="/RichTextBox/Images/MSOffice/16/formatting-symbols.png" Stretch="Uniform"/>
            </ToggleButton>
        </StackPanel>

        <telerikEditor:RadRichTextBox x:Name="Editor" Grid.Row="1" IsReadOnly="true"/>

    </Grid>
</UserControl>
