Gets or sets which UI elements of the calendar should be custom drawn.
Namespace: MindFusion.Scheduling
Assembly: MindFusion.Scheduling
C# Copy Code |
---|
public CustomDrawElements CustomDraw { get; set; } |
Visual Basic Copy Code |
---|
Public Property CustomDraw As CustomDrawElements |
A combination of CustomDrawElements enumeration members. The default is None.
Use the bitwise or operation to combine members of CustomDrawElements specifying which elements of the view must be custom drawn. Handle the Draw event to perform custom drawing.
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 Month view.
C# Copy Code |
---|
calendar.CurrentView = CalendarView.Month; |
Visual Basic Copy Code |
---|
calendar.CurrentView = CalendarView.Month |