wpf-devexpress-dot-xpf-dot-editors-dot-baseedit-ba5e720b.md
Gets or sets a converter for the editor’s display value. This is a dependency property.
Namespace : DevExpress.Xpf.Editors
Assembly : DevExpress.Xpf.Core.v25.2.dll
NuGet Package : DevExpress.Wpf.Core
public IValueConverter DisplayTextConverter { get; set; }
Public Property DisplayTextConverter As IValueConverter
| Type | Description |
|---|---|
| IValueConverter |
An object that implements the IValueConverter interface.
|
The editor displays formatted text if the editor value is not being edited (for example, if the editor is not focused or it is read-only). You can use DevExpress Converters or create a custom converter (that implements the IValueConverter interface) to format displayed text.
The following code sample contains a TextEdit bound to a Boolean field. The DisplayTextConverter property displays Yes/No values instead of True/False:
<dxe:TextEdit EditValue="{Binding IsChecked}"
IsReadOnly="True"
DisplayTextConverter="{dxmvvm:BooleanToObjectConverter TrueValue=Yes, FalseValue=No}"/>
Refer to the following help topic for more information about the DisplayTextConverter property in in-place mode: Format Cell Values - DisplayTextConverter.
See Also