# C1.WPF.Calendar.C1MultiMonthCalendar.MonthCount

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Calendar_C1MultiMonthCalendar_MonthCount_" data-uid="C1.WPF.Calendar.C1MultiMonthCalendar.MonthCount*">MonthCount Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Calendar_C1MultiMonthCalendar_MonthCount_" data-uid="C1.WPF.Calendar.C1MultiMonthCalendar.MonthCount*"></a>
<h4 id="C1_WPF_Calendar_C1MultiMonthCalendar_MonthCount" data-uid="C1.WPF.Calendar.C1MultiMonthCalendar.MonthCount">MonthCount</h4>
<div class="markdown level1 summary"><p>Gets or sets a number of months currently represented by the calendar.
The default value is 1. This is a dependency property.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public int MonthCount { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property MonthCount As Integer</code></pre>
</div>
<h5 id="C1_WPF_Calendar_C1MultiMonthCalendar_MonthCount_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
                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. 
                </p>
<p>
                You can change default behavior by using custom ItemsPanelTemplate. 
                For more details see MonthsPanel property description.
                </p>
</div>
</div>
