Skip to main content
All docs
V24.2

DateEditSettings.MaxTime Property

Gets or sets the editor’s maximum time. This property is in effect only if the editor operates TimeOnly data. This is a dependency property.

Namespace: DevExpress.Xpf.Editors.Settings

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

NuGet Package: DevExpress.Wpf.Core

Declaration

public TimeOnly? MaxTime { get; set; }

Property Value

Type Description
Nullable<TimeOnly>

Specifies the maximum allowed time. If null, the TimeOnly.MaxValue is used.

Remarks

A user can change the time by typing it in the text box. In this instance, if a new value exceeds the maximum allowed time, an error icon is displayed, indicating that the specified value is not valid.

A user cannot select time from the drop-down time picker if it is later than the maximum allowed time.

To specify the minimum allowed time, use the DateEditSettings.MinTime property.

See Also