Skip to main content

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.1.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