# C1.WPF.Schedule.C1CalendarItem

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Schedule_C1CalendarItem" data-uid="C1.WPF.Schedule.C1CalendarItem" class="text-break">C1CalendarItem Class
</h1>
  <div class="markdown level0 summary"><p>Represents a single month calendar with an ability to interactively navigate
through months and select a specific DateTime or its components.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.threading.dispatcherobject">DispatcherObject</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.dependencyobject">DependencyObject</a></div>
    <div class="level3"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.visual">Visual</a></div>
    <div class="level4"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement">UIElement</a></div>
    <div class="level5"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a></div>
    <div class="level6"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.control">Control</a></div>
    <div class="level7"><a class="xref" href="C1.WPF.Schedule.CalendarBase.html">CalendarBase</a></div>
    <div class="level8"><span class="xref">C1CalendarItem</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.animation.ianimatable">IAnimatable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.iframeworkinputelement">IFrameworkInputElement</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.iinputelement">IInputElement</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.isupportinitialize">ISupportInitialize</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.markup.iqueryambient">IQueryAmbient</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.iweakeventlistener">IWeakEventListener</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.Schedule.html">C1.WPF.Schedule</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.Schedule.4.6.2.dll</h6>
  <h5 id="C1_WPF_Schedule_C1CalendarItem_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TemplatePart(Name = &quot;PART_YearsComboBox&quot;, Type = typeof(ComboBox))]
[TemplatePart(Name = &quot;PART_MonthsComboBox&quot;, Type = typeof(ComboBox))]
public class C1CalendarItem : CalendarBase, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IWeakEventListener, IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TemplatePart(Name:=&quot;PART_YearsComboBox&quot;, Type:=GetType(ComboBox))&gt;
&lt;TemplatePart(Name:=&quot;PART_MonthsComboBox&quot;, Type:=GetType(ComboBox))&gt;
Public Class C1CalendarItem
    Inherits CalendarBase
    Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IWeakEventListener, IDisposable</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Schedule_C1CalendarItem__ctor" data-uid="C1.WPF.Schedule.C1CalendarItem.#ctor">
          <a class="xref" href="C1.WPF.Schedule.C1CalendarItem.-ctor.html#C1_WPF_Schedule_C1CalendarItem__ctor">C1CalendarItem()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.WPF.Schedule.C1CalendarItem.html">C1CalendarItem</a> control.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Schedule_C1CalendarItem_C1CalendarProperty" data-uid="C1.WPF.Schedule.C1CalendarItem.C1CalendarProperty">
          <a class="xref" href="C1.WPF.Schedule.C1CalendarItem.C1CalendarProperty.html">C1CalendarProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Schedule.C1CalendarItem.C1Calendar.html#C1_WPF_Schedule_C1CalendarItem_C1Calendar">C1Calendar</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_C1CalendarItem_GenerateAdjacentNextMonthDaysProperty" data-uid="C1.WPF.Schedule.C1CalendarItem.GenerateAdjacentNextMonthDaysProperty">
          <a class="xref" href="C1.WPF.Schedule.C1CalendarItem.GenerateAdjacentNextMonthDaysProperty.html">GenerateAdjacentNextMonthDaysProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Schedule.C1CalendarItem.GenerateAdjacentNextMonthDays.html#C1_WPF_Schedule_C1CalendarItem_GenerateAdjacentNextMonthDays">GenerateAdjacentNextMonthDays</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_C1CalendarItem_GenerateAdjacentPreviousMonthDaysProperty" data-uid="C1.WPF.Schedule.C1CalendarItem.GenerateAdjacentPreviousMonthDaysProperty">
          <a class="xref" href="C1.WPF.Schedule.C1CalendarItem.GenerateAdjacentPreviousMonthDaysProperty.html">GenerateAdjacentPreviousMonthDaysProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Schedule.C1CalendarItem.GenerateAdjacentPreviousMonthDays.html#C1_WPF_Schedule_C1CalendarItem_GenerateAdjacentPreviousMonthDays">GenerateAdjacentPreviousMonthDays</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_C1CalendarItem_MonthFullNameProperty" data-uid="C1.WPF.Schedule.C1CalendarItem.MonthFullNameProperty">
          <a class="xref" href="C1.WPF.Schedule.C1CalendarItem.MonthFullNameProperty.html">MonthFullNameProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Schedule.C1CalendarItem.MonthFullName.html#C1_WPF_Schedule_C1CalendarItem_MonthFullName">MonthFullName</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_C1CalendarItem_ShowNextButtonProperty" data-uid="C1.WPF.Schedule.C1CalendarItem.ShowNextButtonProperty">
          <a class="xref" href="C1.WPF.Schedule.C1CalendarItem.ShowNextButtonProperty.html">ShowNextButtonProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Schedule.C1CalendarItem.ShowNextButton.html#C1_WPF_Schedule_C1CalendarItem_ShowNextButton">ShowNextButton</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_C1CalendarItem_ShowPreviousButtonProperty" data-uid="C1.WPF.Schedule.C1CalendarItem.ShowPreviousButtonProperty">
          <a class="xref" href="C1.WPF.Schedule.C1CalendarItem.ShowPreviousButtonProperty.html">ShowPreviousButtonProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Schedule.C1CalendarItem.ShowPreviousButton.html#C1_WPF_Schedule_C1CalendarItem_ShowPreviousButton">ShowPreviousButton</a> dependency property.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Schedule_C1CalendarItem_C1Calendar" data-uid="C1.WPF.Schedule.C1CalendarItem.C1Calendar">
          <a class="xref" href="C1.WPF.Schedule.C1CalendarItem.C1Calendar.html#C1_WPF_Schedule_C1CalendarItem_C1Calendar">C1Calendar</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a <a class="xref" href="C1.WPF.Schedule.C1CalendarItem.C1Calendar.html#C1_WPF_Schedule_C1CalendarItem_C1Calendar">C1Calendar</a> owning this <a class="xref" href="C1.WPF.Schedule.C1CalendarItem.html">C1CalendarItem</a> control.
This is a dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_C1CalendarItem_GenerateAdjacentNextMonthDays" data-uid="C1.WPF.Schedule.C1CalendarItem.GenerateAdjacentNextMonthDays">
          <a class="xref" href="C1.WPF.Schedule.C1CalendarItem.GenerateAdjacentNextMonthDays.html#C1_WPF_Schedule_C1CalendarItem_GenerateAdjacentNextMonthDays">GenerateAdjacentNextMonthDays</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that determines whether the day slots corresponding
to days of a month next to the currently represented one will show
the days or will be empty.
The default value is False. This is a dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_C1CalendarItem_GenerateAdjacentPreviousMonthDays" data-uid="C1.WPF.Schedule.C1CalendarItem.GenerateAdjacentPreviousMonthDays">
          <a class="xref" href="C1.WPF.Schedule.C1CalendarItem.GenerateAdjacentPreviousMonthDays.html#C1_WPF_Schedule_C1CalendarItem_GenerateAdjacentPreviousMonthDays">GenerateAdjacentPreviousMonthDays</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that determines whether the day slots corresponding
to days of a month previous to the currently represented one will show
the days or will be empty. The default value is False.
This is a dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_C1CalendarItem_MonthFullName" data-uid="C1.WPF.Schedule.C1CalendarItem.MonthFullName">
          <a class="xref" href="C1.WPF.Schedule.C1CalendarItem.MonthFullName.html#C1_WPF_Schedule_C1CalendarItem_MonthFullName">MonthFullName</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a full name of a month currently represented by calendar taking into
account current culture.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_C1CalendarItem_Months" data-uid="C1.WPF.Schedule.C1CalendarItem.Months">
          <a class="xref" href="C1.WPF.Schedule.C1CalendarItem.Months.html#C1_WPF_Schedule_C1CalendarItem_Months">Months</a>
        </td>
        <td 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 months. 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 months.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_C1CalendarItem_ShowNextButton" data-uid="C1.WPF.Schedule.C1CalendarItem.ShowNextButton">
          <a class="xref" href="C1.WPF.Schedule.C1CalendarItem.ShowNextButton.html#C1_WPF_Schedule_C1CalendarItem_ShowNextButton">ShowNextButton</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that determines whether to show the next month navigation button.
The default value is True. This is a dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_C1CalendarItem_ShowPreviousButton" data-uid="C1.WPF.Schedule.C1CalendarItem.ShowPreviousButton">
          <a class="xref" href="C1.WPF.Schedule.C1CalendarItem.ShowPreviousButton.html#C1_WPF_Schedule_C1CalendarItem_ShowPreviousButton">ShowPreviousButton</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that determines whether to show the previous month navigation button.
The default value is True. This is a dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_C1CalendarItem_SyncRepresentationToDateTime" data-uid="C1.WPF.Schedule.C1CalendarItem.SyncRepresentationToDateTime">
          <a class="xref" href="C1.WPF.Schedule.C1CalendarItem.SyncRepresentationToDateTime.html#C1_WPF_Schedule_C1CalendarItem_SyncRepresentationToDateTime">SyncRepresentationToDateTime</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a> value, determining whether control
synchronizes it's representation according to
the changes of <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a> property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_C1CalendarItem_Years" data-uid="C1.WPF.Schedule.C1CalendarItem.Years">
          <a class="xref" href="C1.WPF.Schedule.C1CalendarItem.Years.html#C1_WPF_Schedule_C1CalendarItem_Years">Years</a>
        </td>
        <td 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>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Schedule_C1CalendarItem_Dispose" data-uid="C1.WPF.Schedule.C1CalendarItem.Dispose">
          <a class="xref" href="C1.WPF.Schedule.C1CalendarItem.Dispose.html#C1_WPF_Schedule_C1CalendarItem_Dispose">Dispose()</a>
        </td>
        <td class="markdown level1 summary"><p>Clean up any resources being used.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_C1CalendarItem_Dispose_System_Boolean_" data-uid="C1.WPF.Schedule.C1CalendarItem.Dispose(System.Boolean)">
          <a class="xref" href="C1.WPF.Schedule.C1CalendarItem.Dispose.html#C1_WPF_Schedule_C1CalendarItem_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Clean up any resources being used.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_C1CalendarItem_OnApplyTemplate" data-uid="C1.WPF.Schedule.C1CalendarItem.OnApplyTemplate">
          <a class="xref" href="C1.WPF.Schedule.C1CalendarItem.OnApplyTemplate.html#C1_WPF_Schedule_C1CalendarItem_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"><p>Rebuilds calendar slots after initializing.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_C1CalendarItem_OnCreateAutomationPeer" data-uid="C1.WPF.Schedule.C1CalendarItem.OnCreateAutomationPeer">
          <a class="xref" href="C1.WPF.Schedule.C1CalendarItem.OnCreateAutomationPeer.html#C1_WPF_Schedule_C1CalendarItem_OnCreateAutomationPeer">OnCreateAutomationPeer()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets an AutomationPeer object used for testing the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_C1CalendarItem_OnMonthChanged_System_Windows_DependencyPropertyChangedEventArgs_" data-uid="C1.WPF.Schedule.C1CalendarItem.OnMonthChanged(System.Windows.DependencyPropertyChangedEventArgs)">
          <a class="xref" href="C1.WPF.Schedule.C1CalendarItem.OnMonthChanged.html#C1_WPF_Schedule_C1CalendarItem_OnMonthChanged_System_Windows_DependencyPropertyChangedEventArgs_">OnMonthChanged(DependencyPropertyChangedEventArgs)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
