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.AllowNegativeValue Attached Property

Specifies whether the editor allows entering negative values. This is an attached property.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v24.2.dll

NuGet Package: DevExpress.Wpf.Core

#Declaration

#Returns

Type Description
Boolean

true, if an editor allows entering negative values; otherwise, false. The default is true.

#Remarks

Set the AllowNegativeValue property to false to prevent end users from entering negative TimeSpan values.

When a negative TimeSpan value is assigned to the editor’s EditValue directly, and the AllowNegativeValue property is set to false, the EditValue will not be converted to a positive value untill an end-user changes the EditValue using the time span mask.

See Also