Gets or sets an ItemsPanelTemplate that defines the panel that lays out elements
representing separate months. This is a dependency property.
Namespace:
C1.Silverlight.ScheduleAssembly: C1.Silverlight.Schedule (in C1.Silverlight.Schedule.dll)
Syntax
C# |
---|
public ItemsPanelTemplate MonthsPanel { get; set; } |
Visual Basic |
---|
Public Property MonthsPanel As ItemsPanelTemplate Get Set |
Remarks
C1Calendar controls supports the next panels:
- The C1UniformGrid panel. This is a default setting. A value of the MonthCount property is set automatically according to the available space.
- The Grid panel. A value of the MonthCount property is set automatically according to the grid definition.
- The StackPanel panel. The C1Calendar control honors explicitely defined MonthCount property value.
- The VirtualizingStackPanel panel. The C1Calendar control honors explicitely defined MonthCount property value.
Examples
Copy CodeC#
<c1sched:C1Calendar MonthCount="4"> <c1sched:C1Calendar.MonthsPanel> <ItemsPanelTemplate> <StackPanel Orientation="Horizontal"/> </ItemsPanelTemplate> </c1sched:C1Calendar.MonthsPanel> </c1sched:C1Calendar> |