RichTextBox for WPF | ComponentOne
In This Topic
    Working with RichTextBox ToolStrip
    In This Topic

    The RichTextBoxToolStrip control lays out a series of basic tools, which will be automatically bound to the assigned RichTextBox. Once you add the C1.WPF.RichTextBox.Ribbon nuget package, C1RichTextBoxToolStrip gets automatically added in the Visual Studio Toolbox automatically. This control is represented by the C1RichTextBoxToolStrip class.

    This is a snapshot of RichTextBox ToolStrip

    Note: The RichTextBoxToolStrip is available only for .NET. For .NET Framework, RichTextBox provides the C1SimplifiedRichTextBox and C1RichTextBoxToolbar.

    When you drop a RichTextBox ToolStrip control onto the window, the following XAML code is generated:

    XAML
    Copy Code
    <c1:C1RichTextBoxToolStrip VerticalAlignment="Top">
                <c1:C1UndoTool/>
                <c1:C1RedoTool/>
                <c1:C1FontFamilyTool/>
                <c1:C1FontSizeTool/>
                <c1:C1PasteTool/>
                <c1:C1CutTool/>
                <c1:C1CopyTool/>
                <c1:C1ToolSeparator/>
                <c1:C1BoldTool/>
                <c1:C1ItalicTool/>
                <c1:C1UnderlineTool/>
                <c1:C1StrikethroughTool/>
                <c1:C1ToolSeparator/>
                <c1:C1NumberingTool/>
                <c1:C1BulletsTool/>
                <c1:C1ToolSeparator/>
                <c1:C1LeftAlignTool/>
                <c1:C1CenterAlignTool/>
                <c1:C1RightAlignTool/>
                <c1:C1JustifyTool/>
            </c1:C1RichTextBoxToolStrip>