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.
Unfortunately, activation email could not send to your email. Please try again.

Bind RichTextBoxRibbon to RichTextBoxAdv

Thread ID:

Created:

Updated:

Platform:

Replies:

116896 Jun 26,2014 04:13 AM Jul 1,2014 10:17 AM WPF 3
loading
Tags: RichTextBoxAdv
Chuck Berg
Asked On June 26, 2014 04:13 AM

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?


Arumuga Perumal S [Syncfusion]
Replied On June 30, 2014 12:07 AM

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

Chuck Berg
Replied On June 30, 2014 12:49 AM

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"  />


Arumuga Perumal S [Syncfusion]
Replied On July 1, 2014 10:17 AM

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.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;