TextEditSettings.MaskUseAsDisplayFormat Property

Gets or sets whether display values are still formatted using the mask when the editor is not focused. This is a dependency property.

Namespace: DevExpress.Xpf.Editors.Settings

Assembly: DevExpress.Xpf.Core.v20.1.dll

Declaration

public bool MaskUseAsDisplayFormat { get; set; }
Public Property MaskUseAsDisplayFormat As Boolean

Property Value

Type Description
Boolean

true if the mask settings are used to format display values when the editor is not focused; false if the settings specified by the BaseEditSettings.DisplayFormat property are used.

Property Paths

You can access this nested property as listed below:

Object Type Path to MaskUseAsDisplayFormat
TokenEditorBehavior
.TokenEditSettings.MaskUseAsDisplayFormat
TokenEditorBehavior
.NewTokenEditSettings.MaskUseAsDisplayFormat

Remarks

Set the MaskUseAsDisplayFormat property to true to use the editor's mask settings to format its display text when the editor is not focused. As a result, the editor's text in edit and display modes will be identical.

To learn more, see Masked Input.

Example

<dxg:GridControl ItemsSource="{Binding Customers}">
    <dxg:GridControl.View>
        <dxg:TableView />
    </dxg:GridControl.View>
    <dxg:GridColumn FieldName="Name"/>
    <dxg:GridColumn FieldName="City"/>
    <dxg:GridColumn FieldName="Birthday">
        <dxg:GridColumn.EditSettings>
            <dxe:TextEditSettings Mask="d" MaskType="DateTime" MaskUseAsDisplayFormat="True"/>
        </dxg:GridColumn.EditSettings>
    </dxg:GridColumn>
</dxg:GridControl>
See Also