RadRichTextBox - RadRichTextBoxRibbonUI manual configuration

3 posts, 0 answers
  1. Ricardo
    Ricardo avatar
    3 posts
    Member since:
    Dec 2011

    Posted 20 Dec 2011 Link to this post

    Hi,

    How can I achieve the RadRichTextBoxRibbonUI - RadRichTextBox configuration thru C# code? 

  2. Vasil
    Admin
    Vasil avatar
    124 posts

    Posted 22 Dec 2011 Link to this post

    Hi Ricardo,

    Thank you for your interest in the RadRichTextBox.

    I suppose that you have taken a look at our online examples which use mostly XAML code. This is a good way to get familiar with the control and to determine what is needed for your scenario. On the next step you can review our documentation for RadRichTextBox and RadRibbonView controls which include XAML, C# and VB.NET code examples and can help you create your application.

    The connection between RadRichTextBoxRibbonUI and RadRichTextBox is done by setting the Commands property of RadRichTextBox as a DataContext of RadRichTextBoxRibbonUI. In C# code this can be done like this:

    this.radRichTextBoxRibbonUI.DataContext = this.radRichTextBox.Commands;

    I hope this helps.

    Greetings,
    Vasil
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. Ricardo
    Ricardo avatar
    3 posts
    Member since:
    Dec 2011

    Posted 22 Dec 2011 Link to this post

    Hi Vasil,

    Thank you very much for your quick response.

    The line of code you provide has resolved my issue.

    Good job man!

Back to Top