This example illustrates how to use SpecificFormatToContentConverter and ContentToSpecificFormatConverter to setup binding between RichEditControl content and other DependencyProperty of a specific DependencyObject (TextBox in this example). The main window UI is composed in a special manner to clearly illustrate that you should utilize SpecificFormatToContentConverter if you wish to bind RichEditControl.Content property to a specific entity property. Otherwise, if you wish to bind a specific entity property to a RichEditControl.Content property, utilize ContentToSpecificFormatConverter. Here is the corresponding screenshot:
We have used OneWay binding mode (data is transfered from source to target) in this example for clarity sake. Please review the following web pages to learn more about other available binding modes and general WPF data binding concept:
Data Binding in WPF
Data Binding Overview
Question Comments
Added By: Itamar Shoham at: 7/3/2016 1:50:56 PM notice, in Version 15.1 I'm getting the following error message:
'The member "ActiveViewType" is not recognized or is not accessible'
while this page - https://documentation.devexpress.com/#WPF/DevExpressXpfRichEditRichEditControl_ActiveViewTypetopic
states that the member has getter and a setter.