# C1.WPF.Schedule.C1CalendarItem.Years

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Schedule_C1CalendarItem_Years_" data-uid="C1.WPF.Schedule.C1CalendarItem.Years*">Years Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Schedule_C1CalendarItem_Years_" data-uid="C1.WPF.Schedule.C1CalendarItem.Years*"></a>
<h4 id="C1_WPF_Schedule_C1CalendarItem_Years" data-uid="C1.WPF.Schedule.C1CalendarItem.Years">Years</h4>
<div class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.WPF.Schedule.C1CalendarItem.DateTimeInfoCollection.html">C1CalendarItem.DateTimeInfoCollection</a> object pre-populated with <a class="xref" href="C1.WPF.Schedule.DateTimeInfo.html">DateTimeInfo</a>
objects representing several adjoining years. This object can be used in xaml
for navigating the <a class="xref" href="C1.WPF.Schedule.C1CalendarItem.html">C1CalendarItem</a> control to the one of the adjoining years.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[Browsable(false)]
public C1CalendarItem.DateTimeInfoCollection Years { get; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;Browsable(False)&gt;
Public ReadOnly Property Years As C1CalendarItem.DateTimeInfoCollection</code></pre>
</div>
<h5 id="C1_WPF_Schedule_C1CalendarItem_Years_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This property is used by default C1CalendarItem style.
For the sample of using look into source xaml: themes\CommonCalendarResources.xaml.</p>
</div>
</div>
