ComponentOne RichTextBox for WPF
In This Topic
    XAML Quick Reference
    In This Topic

    This topic is dedicated to providing a quick overview of the XAML used to create a C1RichTextBox and C1RichTextBoxToolbar control.

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

    XAML
    Copy Code
    xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml"
    

    Here is a sample C1RichTextBox and C1RichTextBoxToolbar:

    Below is the XAML code for the sample:

    XAML
    Copy Code
    <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>