# C1.WPF.Schedule.ShiftingCanvas

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Schedule_ShiftingCanvas" data-uid="C1.WPF.Schedule.ShiftingCanvas" class="text-break">ShiftingCanvas Class
</h1>
  <div class="markdown level0 summary"><p>Positions children elements in the viewport of the parent ScrollViewer control which supports horizontal scrolling.</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.panel">Panel</a></div>
    <div class="level7"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.canvas">Canvas</a></div>
    <div class="level8"><span class="xref">ShiftingCanvas</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>
  <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_ShiftingCanvas_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ShiftingCanvas : Canvas, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ShiftingCanvas
    Inherits Canvas
    Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild</code></pre>
  </div>
  <h5 id="C1_WPF_Schedule_ShiftingCanvas_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>If some part of the ShiftingCanvas is scrolled out of the view, children elements
are moved according to the scroll position.
Depending on the <a class="xref" href="C1.WPF.Schedule.ShiftingCanvas.HorizontalContentAlignment.html#C1_WPF_Schedule_ShiftingCanvas_HorizontalContentAlignment">HorizontalContentAlignment</a> property value children are aligned to the
left-most or the right-most viewport side.
HorizontalContentAlignment.Center and HorizontalContentAlignment.Stretch are not supported.</p>
</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_ShiftingCanvas__ctor" data-uid="C1.WPF.Schedule.ShiftingCanvas.#ctor">
          <a class="xref" href="C1.WPF.Schedule.ShiftingCanvas.-ctor.html#C1_WPF_Schedule_ShiftingCanvas__ctor">ShiftingCanvas()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates the new instance of the <a class="xref" href="C1.WPF.Schedule.ShiftingCanvas.html">ShiftingCanvas</a> class.</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_ShiftingCanvas_HorizontalContentAlignmentProperty" data-uid="C1.WPF.Schedule.ShiftingCanvas.HorizontalContentAlignmentProperty">
          <a class="xref" href="C1.WPF.Schedule.ShiftingCanvas.HorizontalContentAlignmentProperty.html">HorizontalContentAlignmentProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Schedule.ShiftingCanvas.HorizontalContentAlignment.html#C1_WPF_Schedule_ShiftingCanvas_HorizontalContentAlignment">HorizontalContentAlignment</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_ShiftingCanvas_HorizontalContentAlignment" data-uid="C1.WPF.Schedule.ShiftingCanvas.HorizontalContentAlignment">
          <a class="xref" href="C1.WPF.Schedule.ShiftingCanvas.HorizontalContentAlignment.html#C1_WPF_Schedule_ShiftingCanvas_HorizontalContentAlignment">HorizontalContentAlignment</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the horizontal alignment of the control's content.
This is a dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_ShiftingCanvas_SkipScrollViewers" data-uid="C1.WPF.Schedule.ShiftingCanvas.SkipScrollViewers">
          <a class="xref" href="C1.WPF.Schedule.ShiftingCanvas.SkipScrollViewers.html#C1_WPF_Schedule_ShiftingCanvas_SkipScrollViewers">SkipScrollViewers</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets an <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a> value specifying the number of parent ScrollViewers which should be ignored.
The default value is 0.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
