Gets a collection of DayOfWeekStyle objects that allow customizing the appearance of specific days of the week in the calendar.
Namespace: MindFusion.Scheduling
Assembly: MindFusion.Scheduling
C# Copy Code |
---|
public List<DayOfWeekStyle> DayOfWeekStyles { get; } |
Visual Basic Copy Code |
---|
Public ReadOnly Property DayOfWeekStyles As List(Of DayOfWeekStyle) |
A list of DayOfWeekStyle objects.
Add DayOfWeekStyle objects to this collection to specify a distinct style for a day of the week. If several styles are defined for the same day, the one having the highest Priority is used.
The following example demonstrates how to make all weekend days to be colored differently. The example assumes that calendar references an existing Calendar object.
C# Copy Code |
---|
calendar.CurrentView = CalendarView.Month; |
Visual Basic Copy Code |
---|
calendar.CurrentView = CalendarView.Month |