DateEdit Class

Represents a date editor with a dropdown calendar.

Namespace: DevExpress.Xpf.Editors

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

Declaration

public class DateEdit :
    PopupBaseEdit
Public Class DateEdit
    Inherits PopupBaseEdit

Remarks

The DateEdit represents a control that combines the functionality of a single-line text editor, button editor and drop-down calendar. The editor's drop-down window displays a single-month calendar that allows end users to select dates, and navigate through months and years. Specifying a date by selecting it on the calendar, or manual entry into the text box changes the editor's edit value.

date-edit

The currently selected date is specified by the DateEdit.DateTime (and the editor's BaseEdit.EditValue) property. Changing this property raises the BaseEdit.EditValueChanged event. The minimum and maximum allowed dates can be specified using the DateEdit.MinValue and DateEdit.MaxValue properties, respectively.

The DateEdit control uses the date-time masks to format its displayed value.

TIP

Use the editor's BaseEdit.EditValue property to get or set the editor value instead of the DateEdit.DateTime property when you need to set the editor value to null or validate the editor value.

Example

<dxe:DateEdit  MinValue="02/28/2018" MaxValue="02/28/2019">
    <dxe:DateEdit.StyleSettings>
        <dxe:DateEditNavigatorStyleSettings/>
    </dxe:DateEdit.StyleSettings>
</dxe:DateEdit>
See Also