TextEditSettings.Mask Property

Gets or sets a mask expression. This is a dependency property.

Namespace: DevExpress.Xpf.Editors.Settings

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

Declaration

public string Mask { get; set; }
Public Property Mask As String

Property Value

Type Description
String

A string representing a mask expression.

Property Paths

You can access this nested property as listed below:

Object Type Path to Mask
TokenEditorBehavior
TokenEditorBehavior

Remarks

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