Skip to main content
All docs
V26.1
  • TimeSpanMaskOptions.DefaultPart Attached Property

    Specifies the mask part (minutes, seconds, etc.) to which the entered numeric value is assigned if the editor’s edit value is empty. This is an attached property.

    Namespace: DevExpress.Xpf.Editors

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

    NuGet Package: DevExpress.Wpf.Core

    Declaration

    Returns

    Type
    Nullable<TimeSpanPart>

    Remarks

    When the editor’s EditValue is null, the entered numeric value is assigned to the defaut mask part.

    Use the DefaultPart property to specify the default mask part.

    Example

    In the code sample below, when an end user enters any numeric value, this numeric value is assigned to seconds.

    <dxe:TextEdit MaskType="TimeSpan" Mask="[hH ][mM ][sS]" dxe:TimeSpanMaskOptions.DefaultPart="Seconds"/>
    
    See Also