Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

CalendarControlBase.ShowTodayButton Property

Gets or sets the visibility of the Today button.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

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

#Property Value

Type Default Description
Boolean true

The visibility of the Today button.

#Remarks

A click on the Today button assigns Today’s date to the CalendarControlBase.DateTime property (and therefore the CalendarControlBase.EditValue property). A custom Today date can be specified with the CalendarControlBase.TodayDate property.

The appearance of the Today button is dependent on the calendar display mode specified by the CalendarControlBase.CalendarView property.

The following image demonstrates the CalendarControl in Vista display mode with the Today button hovered over with the mouse cursor.

CalendarControl-TodayButton-Vista

In the image below, the Today button is hovered over with the mouse cursor in the CalendarControl painted in Classic display mode.

CalendarControl-TodayButton-Classic.png

See Also