Here, the year and decade views are set to show in a 3x4 grid.

By default, the minimum date shown in the Calendar View is 100 years prior to the current date, and the maximum date shown is 100 years past the current date.

You can change the minimum and maximum dates that the calendar shows by setting the Min Date and Max Date properties.

Each day in the calendar is represented by a Calendar View Day Item object. A Calendar View can contain a large number of Calendar View Day Item objects.

In phase 2, you check each appointment that's booked for the day.

You show a green density bar for each confirmed appointment and a blue density bar for each tentative appointment.

This example shows phased rendering of a Calendar View for scheduling appointments. In phase 1, you blackout dates that can't be booked.

This includes past dates, Sundays, and dates that are already fully booked.

To change the number of rows or columns, call Set Year Decade Display Dimensions with the your desired number of rows and columns.

This will change the grid for both the year and decade views.

Set Selection Mode to None to disable date selection. C# and Visual Basic apps can alternatively use the System. Calendar class, which has very similar functionality. NET Calendar class but not the specific implementations for example Gregorian Calendar.) .

Set Selection Mode to Multiple to let a user select multiple dates. Visual C component extensions (C /CX) uses the Windows:: Foundation:: Date Time structure. NET also supports a type named Date Time, which is implicitly convertible to a Date Time Offset.

The Calendar View supports each of the calendar systems supported by Windows. For more info on the difference between Date Time and Date Time Offset, see Remarks in Date Time Offset.