Raised to allow custom drawing of calendar UI elements. Namespace: MindFusion.Scheduling.Compact
|
C# |
---|
public CustomDraw Draw |
Visual Basic |
---|
Public Draw As CustomDraw |
Draw event handlers receive an argument of type CustomDrawArgs.
This event is raised if the CustomDraw property is set to a value different than None.
The following example demonstrates how to use the CustomDraw property in conjunction with the Draw event. The example assumes that calendar references a valid Calendar instance.
The example draws a red ellipse around specific dates in a SingleMonth view.
C# |
---|
calendar.CurrentView = CalendarView.SingleMonth; |
Visual Basic |
---|
calendar.CurrentView = CalendarView.SingleMonth |