We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Bind RichTextBoxRibbon to RichTextBoxAdv

How do I bind a RichTextBoxRibbon to a RichTextBoxAdv?  I've tried the drag-and-drop approach in the VS designer but that didn't work.  I tried setting the RichTextBoxRibbon.DataContext to "RTB" - the name I assigned to my RichTextBoxAdv, but that didn't work either.

So what will work?


3 Replies

AP Arumuga Perumal S Syncfusion Team June 30, 2014 04:07 AM UTC

Hi Chuck,

Thank you for your interest in Syncfusion products.

We have prepared a sample tried on our side to demonstrate how to bind RichTextRibbon to  RichTextBoxAdv control. Please find the attached sample. Try running the sample and let us know if this helps you.

Please let us know if you have any other questions.

Regards,
Arumuga Perumal S.


Attachment: OfficeUIDemo_6ec994bd.zip


CB Chuck Berg June 30, 2014 04:49 AM UTC

Your sample code contained the answer.  For those developers following behind me, the simple answer is:

<syncfusion:RichTextRibbon Grid.Row="0" DataContext="{Binding ElementName=rte}" />

<syncfusion:RichTextBoxAdv Grid.Row="1" x:Name="rte"  />



AP Arumuga Perumal S Syncfusion Team July 1, 2014 02:17 PM UTC

Hi Chuck,

Thank you for your update.

We are happy to hear that the provided sample meets your requirement.

Please let us know if you have any other questions.

Thanks,
Arumuga Perumal S.


Loader.
Live Chat Icon For mobile
Up arrow icon