# XAML Quick Reference

## Content

This topic is dedicated to providing a quick overview of the XAML used to create a [C1RichTextBox](/componentone/api/wpf/online-richtextbox/dotnet-api/C1.WPF.RichTextBox/C1.WPF.RichTextBox.C1RichTextBox.html) and [C1RichTextBoxToolbar](/componentone/api/wpf/online-richtextbox/dotnet-framework-api/C1.WPF.RichTextBox.Toolbar.4.6.2/C1.WPF.RichTextBox.C1RichTextBoxToolbar.html) control.

To get started developing, add a **c1** namespace declaration in the root element tag:

```xml
xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml"
```

Here is a sample [C1RichTextBox](/componentone/api/wpf/online-richtextbox/dotnet-api/C1.WPF.RichTextBox/C1.WPF.RichTextBox.C1RichTextBox.html) and [C1RichTextBoxToolbar](/componentone/api/wpf/online-richtextbox/dotnet-framework-api/C1.WPF.RichTextBox.Toolbar.4.6.2/C1.WPF.RichTextBox.C1RichTextBoxToolbar.html):

![](https://cdn.mescius.io/document-site-files/images/f14c4281-7088-4b33-9b40-4a5f7acf258d/graphics/richtextboxxaml.png)

Below is the XAML code for the sample:

```xml
<Window x:Class="RichTextBoxWPFXAML.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow"Height="370"Width="697"xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml">
<GridHeight="310">
<StackPanelHorizontalAlignment="Left"Name="SP"VerticalAlignment="Top"Height="327"Width="663">
            <c1:C1SimplifiedRichTextBoxToolbarx:Name="richToolbar"RichTextBox="{BindingElementName=C1RTB}" />
            <c1:C1RichTextBoxx:Name="C1RTB"Grid.Row="1"BorderThickness="0"Height="165" />
        </StackPanel>
    </Grid>
</Window>
```