Calendar for WPF | ComponentOne
C1.WPF.Calendar Namespace / C1MultiMonthCalendar Class / MonthCount Property

In This Topic
    MonthCount Property
    In This Topic
    Gets or sets a number of months currently represented by the calendar. The default value is 1. This is a dependency property.
    Syntax
    'Declaration
     
    
    Public Property MonthCount As Integer
    public int MonthCount {get; set;}
    Remarks

    A default UI of the control is designed so as to fit as many months as can fit in the current control size, taking into account the size of each single month calendar which is determined by the MonthWidth and MonthHeight properties. As a result, when control is resized, the actual number of displayed months can be lower or equal to the MonthCount property value.

    You can change default behavior by using custom ItemsPanelTemplate. For more details see MonthsPanel property description.

    See Also