Back to Devexpress

BaseEdit.DisplayTextConverter Property

wpf-devexpress-dot-xpf-dot-editors-dot-baseedit-ba5e720b.md

latest2.3 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public IValueConverter DisplayTextConverter { get; set; }
vb
Public Property DisplayTextConverter As IValueConverter

Property Value

TypeDescription
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:

xaml
<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

DisplayFormatString

BaseEdit Class

BaseEdit Members

DevExpress.Xpf.Editors Namespace