protected override void DrawDay(PaintEventArgs e, Rectangle rect, DateTime time) { e.Graphics.FillRectangle(SystemBrushes.Window, rect); if (UIExtension.IsHighContrastActive()) { // Draw selection first because it's opaque DrawDaySelection(e, rect, time); DrawDaySlotSeparators(e, rect, time); DrawNonWorkHours(e, rect, time); DrawToday(e, rect, time); DrawDayAppointments(e, rect, time); } else { DrawDaySlotSeparators(e, rect, time); DrawNonWorkHours(e, rect, time); DrawToday(e, rect, time); DrawDayAppointments(e, rect, time); // Draw selection last because it's translucent DrawDaySelection(e, rect, time); } DrawDayGripper(e, rect); }