Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.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