Gets a collection of DaySlot elements defining a data based on which a control UI representing month days is created.

Namespace:  C1.WPF.C1Schedule
Assembly:  C1.WPF.C1Schedule (in C1.WPF.C1Schedule.dll)

Syntax

C#
[BrowsableAttribute(false)]
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)]
public DaySlotCollection DaySlots { get; }
Visual Basic (Declaration)
<BrowsableAttribute(False)> _
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)> _
Public ReadOnly Property DaySlots As DaySlotCollection
	Get

Remarks

The collection items (DaySlot objects) for this collection are automatically generated based on the Year and Month property values. These items are used as a basis for a creation of UI that represents days of month. For each DaySlot object in this collection, the calendar creates a UI elements tree according to DataTemplate defined in the DaySlotTemplate property and sets up the DaySlot as a DataContext for the elements in the tree. The root elements of those trees are laid out by a panel defined in the DaysPanel property.

The number of elements in the collection 7 * 6 = 42, where 7 is a number of days in a week and 6 is a maximum number of week lines in a calendar with a rectangular layout necessary to fit all the days.

The first DaySlot in the collection corresponds to a first day of a week that includes a first day of a currently represented month. The DaySlots that don't correspond to a day in the currently represented month can be empty (Empty is true) or represent a day from an adjacent month, which depends on the GenerateAdjacentPreviousMonthDays and GenerateAdjacentNextMonthDays property values.

See Also