Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

DXRichEdit for WPF: How to use RichEdit converters to bind a RichEditControl to a particular entity and vice versa

$
0
0

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

See Also:
DXRichEdit for WPF: How to establish data binding for the RichEditControl to bind text in different formats

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.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>