This is a migrated thread and some comments may be shown as answers.

RadRichTextBox - RadRichTextBoxRibbonUI manual configuration

2 Answers 58 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Ricardo
Top achievements
Rank 1
Ricardo asked on 20 Dec 2011, 05:52 PM
Hi,

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

2 Answers, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 22 Dec 2011, 06:11 PM
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 >>

0
Ricardo
Top achievements
Rank 1
answered on 22 Dec 2011, 11:16 PM
Hi Vasil,

Thank you very much for your quick response.

The line of code you provide has resolved my issue.

Good job man!

Tags
RichTextBox
Asked by
Ricardo
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Ricardo
Top achievements
Rank 1
Share this question
or