ComponentOne RichTextBox for UWP
Step 2 of 3: Customizing the RichTextBox
RichTextBox for UWP Quick Start > Step 2 of 3: Customizing the RichTextBox

In the previous step you created a new Universal Windows application, set the application up, and added the control to the application. In this step you'll customize the application further.

Complete the following steps:

  1. In the Solution Explorer, right-click the MainPage.xaml file and select View Code to open the code file.
  2. In the Code Editor, add the following code to import the following namespaces:
    Visual Basic
    Copy Code
    Imports C1.Xaml.RichTextBox
    
    C#
    Copy Code
    using C1.Xaml.RichTextBox;
    
  3. Add the following code to the MainPage constructor:
    Visual Basic
    Copy Code
    Me.C1RTB.FontSize = 24
    Me.C1RTB.Text = "Hello World! Welcome to the most complete rich text editor
     available for UWP Edition. Load, edit, and save formatted text as HTML or RTF
     documents with RichTextBox for UWP Edition. The C1RichTextBox
     control provides rich formatting, automatic line wrapping, HTML and RTF
     import/export, table support, images, annotations, and more."
    
    C#
    Copy Code
    this.C1RTB.FontSize = 24;
    this.C1RTB.Text = "Hello World! Welcome to the most complete rich text editor
     available for UWP Edition. Load, edit, and save formatted text as HTML or RTF
     documents with RichTextBox for UWP Edition. The C1RichTextBox
     control provides rich formatting, automatic line wrapping, HTML and RTF
     import/export, table support, images, annotations, and more.";
    

This code adds content to the C1RichTextBox control.

 What You've Accomplished

In this step you added content to your C1RichTextBox application, now all that's left is to run it. In the next step you'll run the application and view some of the run-time interactions possible with the C1RichTextBox control.