Skip to main content

RepositoryItemDateEdit.ShowToday Property

Gets or sets whether to display the Today button in the dropdown calendar (in Classic and Vista modes).

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.dll

Declaration

[DefaultValue(true)]
[DXCategory("Behavior")]
public virtual bool ShowToday { get; set; }

Property Value

Type Default Description
Boolean true

true if the Today button is visible; otherwise,false.

Remarks

The ShowToday property specifies the Today button’s visibility in the Classic and Vista view styles (see RepositoryItemDateEdit.CalendarView).

In the Classic view style, a click on the Today button assigns Today’s date (RepositoryItemDateEdit.TodayDate) to the editor’s value (DateEdit.DateTime) and closes the dropdown. A click on the Today button does not change the time portion of the current value.

DateEdit-Classic-TodayButton

In the Vista view style, a click on the Today button highlights Today’s date (RepositoryItemDateEdit.TodayDate) in the calendar, but does not change the editor value and does not close the dropdown.

DateEdit-Vista-TodayButton

Note

The TouchUI view style does not support the Today button, nor the ShowToday property.

See Also