# C1.WPF.Schedule.TimeRuler

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Schedule_TimeRuler" data-uid="C1.WPF.Schedule.TimeRuler" class="text-break">TimeRuler Class
</h1>
  <div class="markdown level0 summary"><p>Represents UI for displaying horizontal or vertical time ruler in the <a class="xref" href="C1.WPF.Schedule.C1Scheduler.html">C1Scheduler</a> control template.</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"><span class="xref">TimeRuler</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.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>
  <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_TimeRuler_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TemplatePart(Name = &quot;CurrentTimeIndicator&quot;, Type = typeof(ContentControl))]
public class TimeRuler : ItemsControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IContainItemStorage</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TemplatePart(Name:=&quot;CurrentTimeIndicator&quot;, Type:=GetType(ContentControl))&gt;
Public Class TimeRuler
    Inherits ItemsControl
    Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IContainItemStorage</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_TimeRuler__ctor" data-uid="C1.WPF.Schedule.TimeRuler.#ctor">
          <a class="xref" href="C1.WPF.Schedule.TimeRuler.-ctor.html#C1_WPF_Schedule_TimeRuler__ctor">TimeRuler()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of <a class="xref" href="C1.WPF.Schedule.TimeRuler.html">TimeRuler</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_TimeRuler_CurrentTimeTemplateProperty" data-uid="C1.WPF.Schedule.TimeRuler.CurrentTimeTemplateProperty">
          <a class="xref" href="C1.WPF.Schedule.TimeRuler.CurrentTimeTemplateProperty.html">CurrentTimeTemplateProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Schedule.TimeRuler.CurrentTimeTemplate.html#C1_WPF_Schedule_TimeRuler_CurrentTimeTemplate">CurrentTimeTemplate</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_TimeRuler_SchedulerProperty" data-uid="C1.WPF.Schedule.TimeRuler.SchedulerProperty">
          <a class="xref" href="C1.WPF.Schedule.TimeRuler.SchedulerProperty.html">SchedulerProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Schedule.TimeRuler.Scheduler.html#C1_WPF_Schedule_TimeRuler_Scheduler">Scheduler</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_TimeRuler_CurrentTimeTemplate" data-uid="C1.WPF.Schedule.TimeRuler.CurrentTimeTemplate">
          <a class="xref" href="C1.WPF.Schedule.TimeRuler.CurrentTimeTemplate.html#C1_WPF_Schedule_TimeRuler_CurrentTimeTemplate">CurrentTimeTemplate</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a DataTemplate that defines a UI representation of
a the current time mark. This is a dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_TimeRuler_Scheduler" data-uid="C1.WPF.Schedule.TimeRuler.Scheduler">
          <a class="xref" href="C1.WPF.Schedule.TimeRuler.Scheduler.html#C1_WPF_Schedule_TimeRuler_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.TimeRuler.html">TimeRuler</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_TimeRuler_ArrangeOverride_System_Windows_Size_" data-uid="C1.WPF.Schedule.TimeRuler.ArrangeOverride(System.Windows.Size)">
          <a class="xref" href="C1.WPF.Schedule.TimeRuler.ArrangeOverride.html#C1_WPF_Schedule_TimeRuler_ArrangeOverride_System_Windows_Size_">ArrangeOverride(Size)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_TimeRuler_OnApplyTemplate" data-uid="C1.WPF.Schedule.TimeRuler.OnApplyTemplate">
          <a class="xref" href="C1.WPF.Schedule.TimeRuler.OnApplyTemplate.html#C1_WPF_Schedule_TimeRuler_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
