ExCalendar
ExCalendar is a month calendar drawn completely by the library, without the Win32 MonthCalendar, so all its colors can
be set. It is used on its own or as the drop-down part of ExDateTimePicker.
Behavior
| Member | Description |
|---|---|
SelectionDate |
Selected date, the time part is ignored. |
DisplayMonth |
First day of the displayed month. |
View |
Days of a month, months of a year, years of a decade or decades of a century. A click on the header switches to the coarser view, a click on an item goes back down. |
MinDate, MaxDate |
Range of selectable dates. |
TodayDate |
Date treated as today, DateTime.Today when not set. |
FirstDayOfWeek |
First day of the week, by default from the current culture. |
ShowToday, TodayText |
The Today line at the bottom and its label. |
ShowWeekNumbers |
Week numbers in the first column. |
DrawBorder |
A 1 px border around the control. |
DateChanged |
SelectionDate changed. |
DateSelected |
The user picked a date with the mouse, Enter or the Today line. |
DisplayMonthChanged |
DisplayMonth changed. |
SelectToday() selects today and raises DateSelected, EnsureVisible(date) scrolls to the month of a date and
HitTestDate(point) returns the date at a point of the control.
Colors
BackColor and ForeColor color the days, HeaderForeColor the month and year, DayOfWeekForeColor the names of the
days, TrailingForeColor the days of the previous and next month, WeekNumberForeColor the week numbers and
DisabledForeColor the days outside MinDate and MaxDate. The selected day has HighlightColor and
HighlightForeColor, today a frame in TodayBorderColor, the item under the mouse HoverBackColor. The arrows have
ArrowColor and the border BorderColor.
Theme
| Theme color | Used for |
|---|---|
BoxBackColor, BoxForeColor |
Background, days, header, names of the days and arrows. |
MarkColor |
Days of the previous and next month, week numbers. |
BorderColor |
Border, days outside the range. |
ButtonBackColor |
Item under the mouse. |
HighlightBackColor, HighlightForeColor |
Selected day and the frame of today. |
TodayText |
Label of the Today line, null keeps it. |


