# C1.WPF.Schedule.C1Calendar.MonthsPanel

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Schedule_C1Calendar_MonthsPanel_" data-uid="C1.WPF.Schedule.C1Calendar.MonthsPanel*">MonthsPanel Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Schedule_C1Calendar_MonthsPanel_" data-uid="C1.WPF.Schedule.C1Calendar.MonthsPanel*"></a>
<h4 id="C1_WPF_Schedule_C1Calendar_MonthsPanel" data-uid="C1.WPF.Schedule.C1Calendar.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_Schedule_C1Calendar_MonthsPanel_remarks">Remarks</h5>
<div class="markdown level1 remarks"><pre><code>&lt;p&gt;
</code></pre>
<p>C1Calendar controls supports the next panels:</p>
<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 <a class="xref" href="C1.WPF.Schedule.C1Calendar.MonthCount.html#C1_WPF_Schedule_C1Calendar_MonthCount">MonthCount</a> 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 <a class="xref" href="C1.WPF.Schedule.C1Calendar.MonthCount.html#C1_WPF_Schedule_C1Calendar_MonthCount">MonthCount</a> 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.Schedule.C1Calendar.html">C1Calendar</a> control honors explicitly defined <a class="xref" href="C1.WPF.Schedule.C1Calendar.MonthCount.html#C1_WPF_Schedule_C1Calendar_MonthCount">MonthCount</a> 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.Schedule.C1Calendar.html">C1Calendar</a> control honors explicitly defined <a class="xref" href="C1.WPF.Schedule.C1Calendar.MonthCount.html#C1_WPF_Schedule_C1Calendar_MonthCount">MonthCount</a> 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>
