BaseEdit.DisplayTextConverter Property
Gets or sets a converter for the editor’s display value. This is a dependency property.
Namespace: DevExpress.Xpf.Editors
Assembly: DevExpress.Xpf.Core.v24.2.dll
NuGet Package: DevExpress.Wpf.Core
Declaration
Property Value
Type | Description |
---|---|
IValueConverter | An object that implements the IValueConverter interface. |
Remarks
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.