Back to Devexpress

RepositoryItemDateEdit.ShowToday Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemdateedit-d5b8adc4.md

latest3.5 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(true)]
[DXCategory("Behavior")]
public virtual bool ShowToday { get; set; }
vb
<DXCategory("Behavior")>
<DefaultValue(True)>
Public Overridable Property ShowToday As Boolean

Property Value

TypeDefaultDescription
Booleantrue

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.

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.

Note

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

See Also

ShowClear

ShowWeekNumbers

CalendarView

TodayClick

TodayDate

RepositoryItemDateEdit Class

RepositoryItemDateEdit Members

DevExpress.XtraEditors.Repository Namespace