# C1.WPF.Schedule.C1SchedulerViewModel

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Schedule_C1SchedulerViewModel" data-uid="C1.WPF.Schedule.C1SchedulerViewModel" class="text-break">C1SchedulerViewModel Class
</h1>
  <div class="markdown level0 summary"><p>Represents the bridge between the view and the <a class="xref" href="C1.WPF.Schedule.C1Scheduler.html">C1Scheduler</a> control.</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"><span class="xref">C1SchedulerViewModel</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <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.dll</h6>
  <h5 id="C1_WPF_Schedule_C1SchedulerViewModel_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class C1SchedulerViewModel : IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class C1SchedulerViewModel
    Implements IDisposable</code></pre>
  </div>
  <h5 id="C1_WPF_Schedule_C1SchedulerViewModel_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>The <a class="xref" href="C1.WPF.Schedule.C1Scheduler.html">C1Scheduler</a> control creates the <a class="xref" href="C1.WPF.Schedule.C1SchedulerViewModel.html">C1SchedulerViewModel</a> object and uses it as a DataContext.
You can use this DataContext in the custom ControlTemplates for the <a class="xref" href="C1.WPF.Schedule.C1Scheduler.html">C1Scheduler</a> control.</p>
</div>
  <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_C1SchedulerViewModel_GroupItems" data-uid="C1.WPF.Schedule.C1SchedulerViewModel.GroupItems">
          <a class="xref" href="C1.WPF.Schedule.C1SchedulerViewModel.GroupItems.html#C1_WPF_Schedule_C1SchedulerViewModel_GroupItems">GroupItems</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a collection of all available <a class="xref" href="C1.WPF.Schedule.SchedulerGroupItem.html">SchedulerGroupItem</a> objects for the currently set type of grouping.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_C1SchedulerViewModel_Scheduler" data-uid="C1.WPF.Schedule.C1SchedulerViewModel.Scheduler">
          <a class="xref" href="C1.WPF.Schedule.C1SchedulerViewModel.Scheduler.html#C1_WPF_Schedule_C1SchedulerViewModel_Scheduler">Scheduler</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the reference to the owning <a class="xref" href="C1.WPF.Schedule.C1Scheduler.html">C1Scheduler</a> control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_C1SchedulerViewModel_TotalGroupItem" data-uid="C1.WPF.Schedule.C1SchedulerViewModel.TotalGroupItem">
          <a class="xref" href="C1.WPF.Schedule.C1SchedulerViewModel.TotalGroupItem.html#C1_WPF_Schedule_C1SchedulerViewModel_TotalGroupItem">TotalGroupItem</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.WPF.Schedule.SchedulerGroupItem.html">SchedulerGroupItem</a> object representing the group item which has no owner,
but contains appointments of all visible group items.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_C1SchedulerViewModel_VisibleGroupItems" data-uid="C1.WPF.Schedule.C1SchedulerViewModel.VisibleGroupItems">
          <a class="xref" href="C1.WPF.Schedule.C1SchedulerViewModel.VisibleGroupItems.html#C1_WPF_Schedule_C1SchedulerViewModel_VisibleGroupItems">VisibleGroupItems</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a collection of currently visible <a class="xref" href="C1.WPF.Schedule.SchedulerGroupItem.html">SchedulerGroupItem</a> objects.
This collection can be used in xaml in the <a class="xref" href="C1.WPF.Schedule.C1Scheduler.html">C1Scheduler</a> control templates.</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_C1SchedulerViewModel_Dispose" data-uid="C1.WPF.Schedule.C1SchedulerViewModel.Dispose">
          <a class="xref" href="C1.WPF.Schedule.C1SchedulerViewModel.Dispose.html#C1_WPF_Schedule_C1SchedulerViewModel_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_C1SchedulerViewModel_Dispose_System_Boolean_" data-uid="C1.WPF.Schedule.C1SchedulerViewModel.Dispose(System.Boolean)">
          <a class="xref" href="C1.WPF.Schedule.C1SchedulerViewModel.Dispose.html#C1_WPF_Schedule_C1SchedulerViewModel_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_C1SchedulerViewModel_FindUIForTime_System_DateTime_" data-uid="C1.WPF.Schedule.C1SchedulerViewModel.FindUIForTime(System.DateTime)">
          <a class="xref" href="C1.WPF.Schedule.C1SchedulerViewModel.FindUIForTime.html#C1_WPF_Schedule_C1SchedulerViewModel_FindUIForTime_System_DateTime_">FindUIForTime(DateTime)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a> corresponding to the given <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a> value.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
