Skip to main content
All docs
V24.2

DateEditSettings.MaxDate Property

Gets or sets the editor’s maximum date. This property is in effect only if the editor operates DateOnly 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 DateOnly? MaxDate { get; set; }

Property Value

Type Description
Nullable<DateOnly>

Specifies the maximum allowed date. If null, the DateOnly.MaxValue is used.

Remarks

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

A user cannot select a date from the drop-down calendar if it is later than the maximum allowed date.

To specify the minimum allowed date, use the DateEditSettings.MinDate property.

See Also