Allows you to disable certain dates to prevent them from being selected by an end-user.
[DXCategory("CustomDraw")] public event DisableCalendarDateEventHandler DisableCalendarDate
<DXCategory("CustomDraw")> Public Event DisableCalendarDate As DisableCalendarDateEventHandler
The DisableCalendarDate event's data class is DevExpress.XtraEditors.Calendar.DisableCalendarDateEventArgs.
The DisableCalendarDate event allows you to disable specific dates/date ranges in the calendar to prevent them from being selected by an end-user. Disabled dates are painted with a strikethrough. You can provide custom appearance settings used to paint disabled dates with the CalendarControlBase.CalendarAppearance property.
When handling the DisableCalendarDate event, read the DisableCalendarDateEventArgs.Date property to determine the currently processed date and set the DisableCalendarDateEventArgs.IsDisabled property to true for those that should be disabled.