# C1.WPF.Schedule.VisualIntervalsPresenter

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Schedule_VisualIntervalsPresenter" data-uid="C1.WPF.Schedule.VisualIntervalsPresenter" class="text-break">VisualIntervalsPresenter Class
</h1>
  <div class="markdown level0 summary"><p>The base class for list boxes which should represent
the collection of <a class="xref" href="C1.WPF.Schedule.VisualInterval.html">VisualInterval</a> objects.</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.media.visual">Visual</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement">UIElement</a></div>
    <div class="level3"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a></div>
    <div class="level4"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.control">Control</a></div>
    <div class="level5"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.itemscontrol">ItemsControl</a></div>
    <div class="level6"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.primitives.selector">Selector</a></div>
    <div class="level7"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.listbox">ListBox</a></div>
    <div class="level8"><span class="xref">VisualIntervalsPresenter</span></div>
      <div class="level9"><a class="xref" href="C1.WPF.Schedule.C1SchedulerPresenter.html">C1SchedulerPresenter</a></div>
      <div class="level9"><a class="xref" href="C1.WPF.Schedule.VisualIntervalGroupsPresenter.html">VisualIntervalGroupsPresenter</a></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.markup.iaddchild">IAddChild</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.primitives.icontainitemstorage">IContainItemStorage</a></div>
    <div><span class="xref">IWeakEventListener</span></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_VisualIntervalsPresenter_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class VisualIntervalsPresenter : ListBox, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IContainItemStorage, IWeakEventListener</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class VisualIntervalsPresenter
    Inherits ListBox
    Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IContainItemStorage, IWeakEventListener</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_VisualIntervalsPresenter__ctor" data-uid="C1.WPF.Schedule.VisualIntervalsPresenter.#ctor">
          <a class="xref" href="C1.WPF.Schedule.VisualIntervalsPresenter.-ctor.html#C1_WPF_Schedule_VisualIntervalsPresenter__ctor">VisualIntervalsPresenter()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of <a class="xref" href="C1.WPF.Schedule.VisualIntervalsPresenter.html">VisualIntervalsPresenter</a>.</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_VisualIntervalsPresenter_OwnerProperty" data-uid="C1.WPF.Schedule.VisualIntervalsPresenter.OwnerProperty">
          <a class="xref" href="C1.WPF.Schedule.VisualIntervalsPresenter.OwnerProperty.html">OwnerProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Schedule.VisualIntervalsPresenter.Owner.html#C1_WPF_Schedule_VisualIntervalsPresenter_Owner">Owner</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualIntervalsPresenter_PanningDirectionProperty" data-uid="C1.WPF.Schedule.VisualIntervalsPresenter.PanningDirectionProperty">
          <a class="xref" href="C1.WPF.Schedule.VisualIntervalsPresenter.PanningDirectionProperty.html">PanningDirectionProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Schedule.VisualIntervalsPresenter.PanningDirection.html#C1_WPF_Schedule_VisualIntervalsPresenter_PanningDirection">PanningDirection</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualIntervalsPresenter__prevScheduler" data-uid="C1.WPF.Schedule.VisualIntervalsPresenter._prevScheduler">
          <a class="xref" href="C1.WPF.Schedule.VisualIntervalsPresenter._prevScheduler.html">_prevScheduler</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualIntervalsPresenter__updatingSelection" data-uid="C1.WPF.Schedule.VisualIntervalsPresenter._updatingSelection">
          <a class="xref" href="C1.WPF.Schedule.VisualIntervalsPresenter._updatingSelection.html">_updatingSelection</a>
        </td>
        <td class="markdown level1 summary"><p>This API supports the C1.WPF.Schedule infrastructure
and is not intended to be used directly from your code.</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_VisualIntervalsPresenter_Owner" data-uid="C1.WPF.Schedule.VisualIntervalsPresenter.Owner">
          <a class="xref" href="C1.WPF.Schedule.VisualIntervalsPresenter.Owner.html#C1_WPF_Schedule_VisualIntervalsPresenter_Owner">Owner</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <span class="xref">C1.Schedule.BaseObject</span> object representing the <a class="xref" href="C1.WPF.Schedule.SchedulerGroupItem.html">SchedulerGroupItem</a> object owner.
This property can be null for an empty group item.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualIntervalsPresenter_PanningDirection" data-uid="C1.WPF.Schedule.VisualIntervalsPresenter.PanningDirection">
          <a class="xref" href="C1.WPF.Schedule.VisualIntervalsPresenter.PanningDirection.html#C1_WPF_Schedule_VisualIntervalsPresenter_PanningDirection">PanningDirection</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the panning direction.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualIntervalsPresenter_Scheduler" data-uid="C1.WPF.Schedule.VisualIntervalsPresenter.Scheduler">
          <a class="xref" href="C1.WPF.Schedule.VisualIntervalsPresenter.Scheduler.html#C1_WPF_Schedule_VisualIntervalsPresenter_Scheduler">Scheduler</a>
        </td>
        <td class="markdown level1 summary"><p>References a <a class="xref" href="C1.WPF.Schedule.C1Scheduler.html">C1Scheduler</a> control that owns the
<a class="xref" href="C1.WPF.Schedule.VisualIntervalsPresenter.html">VisualIntervalsPresenter</a>.</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_VisualIntervalsPresenter_AttachSchedulerEvents" data-uid="C1.WPF.Schedule.VisualIntervalsPresenter.AttachSchedulerEvents">
          <a class="xref" href="C1.WPF.Schedule.VisualIntervalsPresenter.AttachSchedulerEvents.html#C1_WPF_Schedule_VisualIntervalsPresenter_AttachSchedulerEvents">AttachSchedulerEvents()</a>
        </td>
        <td class="markdown level1 summary"><p>Attaches presenter to the <a class="xref" href="C1.WPF.Schedule.C1Scheduler.html">C1Scheduler</a> control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualIntervalsPresenter_AttachToScheduler" data-uid="C1.WPF.Schedule.VisualIntervalsPresenter.AttachToScheduler">
          <a class="xref" href="C1.WPF.Schedule.VisualIntervalsPresenter.AttachToScheduler.html#C1_WPF_Schedule_VisualIntervalsPresenter_AttachToScheduler">AttachToScheduler()</a>
        </td>
        <td class="markdown level1 summary"><p>Attaches presenter to the <a class="xref" href="C1.WPF.Schedule.C1Scheduler.html">C1Scheduler</a> control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualIntervalsPresenter_ClearSelection" data-uid="C1.WPF.Schedule.VisualIntervalsPresenter.ClearSelection">
          <a class="xref" href="C1.WPF.Schedule.VisualIntervalsPresenter.ClearSelection.html#C1_WPF_Schedule_VisualIntervalsPresenter_ClearSelection">ClearSelection()</a>
        </td>
        <td class="markdown level1 summary"><p>Clears selection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualIntervalsPresenter_DetachFromScheduler_C1_WPF_Schedule_C1Scheduler_" data-uid="C1.WPF.Schedule.VisualIntervalsPresenter.DetachFromScheduler(C1.WPF.Schedule.C1Scheduler)">
          <a class="xref" href="C1.WPF.Schedule.VisualIntervalsPresenter.DetachFromScheduler.html#C1_WPF_Schedule_VisualIntervalsPresenter_DetachFromScheduler_C1_WPF_Schedule_C1Scheduler_">DetachFromScheduler(C1Scheduler)</a>
        </td>
        <td class="markdown level1 summary"><p>Detaches presenter from the specified <a class="xref" href="C1.WPF.Schedule.C1Scheduler.html">C1Scheduler</a> control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualIntervalsPresenter_GetContainerForItemOverride" data-uid="C1.WPF.Schedule.VisualIntervalsPresenter.GetContainerForItemOverride">
          <a class="xref" href="C1.WPF.Schedule.VisualIntervalsPresenter.GetContainerForItemOverride.html#C1_WPF_Schedule_VisualIntervalsPresenter_GetContainerForItemOverride">GetContainerForItemOverride()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates or identifies the element used to display the specified item.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualIntervalsPresenter_OnMouseLeftButtonUp_System_Windows_Input_MouseButtonEventArgs_" data-uid="C1.WPF.Schedule.VisualIntervalsPresenter.OnMouseLeftButtonUp(System.Windows.Input.MouseButtonEventArgs)">
          <a class="xref" href="C1.WPF.Schedule.VisualIntervalsPresenter.OnMouseLeftButtonUp.html#C1_WPF_Schedule_VisualIntervalsPresenter_OnMouseLeftButtonUp_System_Windows_Input_MouseButtonEventArgs_">OnMouseLeftButtonUp(MouseButtonEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Overrides the default behavior.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualIntervalsPresenter_OnMouseMove_System_Windows_Input_MouseEventArgs_" data-uid="C1.WPF.Schedule.VisualIntervalsPresenter.OnMouseMove(System.Windows.Input.MouseEventArgs)">
          <a class="xref" href="C1.WPF.Schedule.VisualIntervalsPresenter.OnMouseMove.html#C1_WPF_Schedule_VisualIntervalsPresenter_OnMouseMove_System_Windows_Input_MouseEventArgs_">OnMouseMove(MouseEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Overrides the default behavior.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualIntervalsPresenter_OnPreviewStylusButtonDown_System_Windows_Input_StylusButtonEventArgs_" data-uid="C1.WPF.Schedule.VisualIntervalsPresenter.OnPreviewStylusButtonDown(System.Windows.Input.StylusButtonEventArgs)">
          <a class="xref" href="C1.WPF.Schedule.VisualIntervalsPresenter.OnPreviewStylusButtonDown.html#C1_WPF_Schedule_VisualIntervalsPresenter_OnPreviewStylusButtonDown_System_Windows_Input_StylusButtonEventArgs_">OnPreviewStylusButtonDown(StylusButtonEventArgs)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualIntervalsPresenter_OnSelectionChanged_System_Windows_Controls_SelectionChangedEventArgs_" data-uid="C1.WPF.Schedule.VisualIntervalsPresenter.OnSelectionChanged(System.Windows.Controls.SelectionChangedEventArgs)">
          <a class="xref" href="C1.WPF.Schedule.VisualIntervalsPresenter.OnSelectionChanged.html#C1_WPF_Schedule_VisualIntervalsPresenter_OnSelectionChanged_System_Windows_Controls_SelectionChangedEventArgs_">OnSelectionChanged(SelectionChangedEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Overrides the base class behavior.
Only continuous selection is supported.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualIntervalsPresenter_OnStylusLeave_System_Windows_Input_StylusEventArgs_" data-uid="C1.WPF.Schedule.VisualIntervalsPresenter.OnStylusLeave(System.Windows.Input.StylusEventArgs)">
          <a class="xref" href="C1.WPF.Schedule.VisualIntervalsPresenter.OnStylusLeave.html#C1_WPF_Schedule_VisualIntervalsPresenter_OnStylusLeave_System_Windows_Input_StylusEventArgs_">OnStylusLeave(StylusEventArgs)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualIntervalsPresenter_OnStylusMove_System_Windows_Input_StylusEventArgs_" data-uid="C1.WPF.Schedule.VisualIntervalsPresenter.OnStylusMove(System.Windows.Input.StylusEventArgs)">
          <a class="xref" href="C1.WPF.Schedule.VisualIntervalsPresenter.OnStylusMove.html#C1_WPF_Schedule_VisualIntervalsPresenter_OnStylusMove_System_Windows_Input_StylusEventArgs_">OnStylusMove(StylusEventArgs)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualIntervalsPresenter_OnVisualChildrenChanged_System_Windows_DependencyObject_System_Windows_DependencyObject_" data-uid="C1.WPF.Schedule.VisualIntervalsPresenter.OnVisualChildrenChanged(System.Windows.DependencyObject,System.Windows.DependencyObject)">
          <a class="xref" href="C1.WPF.Schedule.VisualIntervalsPresenter.OnVisualChildrenChanged.html#C1_WPF_Schedule_VisualIntervalsPresenter_OnVisualChildrenChanged_System_Windows_DependencyObject_System_Windows_DependencyObject_">OnVisualChildrenChanged(DependencyObject, DependencyObject)</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the visual children of a <a class="xref" href="C1.WPF.Schedule.VisualIntervalPresenter.html">VisualIntervalPresenter</a> element change.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualIntervalsPresenter_ReceiveWeakEvent_System_Type_System_Object_System_EventArgs_" data-uid="C1.WPF.Schedule.VisualIntervalsPresenter.ReceiveWeakEvent(System.Type,System.Object,System.EventArgs)">
          <a class="xref" href="C1.WPF.Schedule.VisualIntervalsPresenter.ReceiveWeakEvent.html#C1_WPF_Schedule_VisualIntervalsPresenter_ReceiveWeakEvent_System_Type_System_Object_System_EventArgs_">ReceiveWeakEvent(Type, object, EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Receives events from the centralized event manager.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualIntervalsPresenter_SelectItems_System_DateTime_System_DateTime_" data-uid="C1.WPF.Schedule.VisualIntervalsPresenter.SelectItems(System.DateTime,System.DateTime)">
          <a class="xref" href="C1.WPF.Schedule.VisualIntervalsPresenter.SelectItems.html#C1_WPF_Schedule_VisualIntervalsPresenter_SelectItems_System_DateTime_System_DateTime_">SelectItems(DateTime, DateTime)</a>
        </td>
        <td class="markdown level1 summary"><p>Selects all items from time interval determined by the specified start and end values.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualIntervalsPresenter_UpdateSelection" data-uid="C1.WPF.Schedule.VisualIntervalsPresenter.UpdateSelection">
          <a class="xref" href="C1.WPF.Schedule.VisualIntervalsPresenter.UpdateSelection.html#C1_WPF_Schedule_VisualIntervalsPresenter_UpdateSelection">UpdateSelection()</a>
        </td>
        <td class="markdown level1 summary"><p>Updates selection.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
