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.

Richtextbox and databinding

Thread ID:

Created:

Updated:

Platform:

Replies:

118733 Apr 5,2015 11:42 PM Apr 6,2015 09:33 AM WPF 1
loading
Tags: RichTextBoxAdv
issam
Asked On April 5, 2015 11:42 PM

Hi,

is it possible to have Twoway databinding with the richtextbox control ?

Narendran Srinivasan [Syncfusion]
Replied On April 6, 2015 09:33 AM

Hi Issam,

Thanks for choosing Syncfusion products,

At this moment our RichTextBoxAdv control does not have support for two binding. But two way binding can achieve using command for setting and property for retrieving the style. For your reference we have prepared a sample to illustrate the same. Please find the sample from below link.

Code Snippet:
<ToggleButton syncfusion:ToolBarAdv.Label="Bold" Command="syncfusion:RichTextBoxAdv.ToggleBold" CommandTarget="{Binding ElementName=rte}" IsChecked="{Binding Path=CurrentInlineStyle.FontWeight, Converter={StaticResource FontWeightToChecked}, Mode=TwoWay, ElementName=rte}" Height="22" Width="22"/>

Sample link:
Sample

Please let me know if you have any other questions

Regards,
Narendran


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.

;