# C1.WPF.Calendar.C1MultiMonthCalendar.MonthsPanel

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Calendar_C1MultiMonthCalendar_MonthsPanel_" data-uid="C1.WPF.Calendar.C1MultiMonthCalendar.MonthsPanel*">MonthsPanel Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Calendar_C1MultiMonthCalendar_MonthsPanel_" data-uid="C1.WPF.Calendar.C1MultiMonthCalendar.MonthsPanel*"></a>
<h4 id="C1_WPF_Calendar_C1MultiMonthCalendar_MonthsPanel" data-uid="C1.WPF.Calendar.C1MultiMonthCalendar.MonthsPanel">MonthsPanel</h4>
<div class="markdown level1 summary"><p>Gets or sets an ItemsPanelTemplate that defines the panel that lays out elements
representing separate months. 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 ItemsPanelTemplate MonthsPanel { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property MonthsPanel As ItemsPanelTemplate</code></pre>
</div>
<h5 id="C1_WPF_Calendar_C1MultiMonthCalendar_MonthsPanel_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
                C1Calendar controls supports the next panels:
                <ul><li>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.primitives.uniformgrid">UniformGrid</a> panel. This is a default setting.
                A value of the MonthCount property is set automatically according to the available space.</li><li>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.grid">Grid</a> panel. A value of the MonthCount property is set automatically 
                according to the grid definition.</li><li>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.stackpanel">StackPanel</a> panel. 
                The <a class="xref" href="C1.WPF.Calendar.C1Calendar.html">C1Calendar</a> control honors explicitly defined MonthCount property value.</li><li>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.virtualizingstackpanel">VirtualizingStackPanel</a> panel. 
                The <a class="xref" href="C1.WPF.Calendar.C1Calendar.html">C1Calendar</a> control honors explicitly defined MonthCount property value.</li></ul><example>
                                                                                                                                                                        <pre><code class="lang-csharp">&lt;c1sched:C1Calendar MonthCount="4"&gt;
                                                                                                                                                                            &lt;c1sched:C1Calendar.MonthsPanel&gt;
                                                                                                                                                                                &lt;ItemsPanelTemplate&gt; 
                                                                                                                                                                                    &lt;StackPanel Orientation="Horizontal"/&gt;
                                                                                                                                                                                &lt;/ItemsPanelTemplate&gt; 
                                                                                                                                                                            &lt;/c1sched:C1Calendar.MonthsPanel&gt;
                                                                                                                                                                        &lt;/c1sched:C1Calendar&gt;</code></pre></example>
</div>
</div>
