# C1.WPF.Core.ScrollViewerTouchBehavior

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Core_ScrollViewerTouchBehavior" data-uid="C1.WPF.Core.ScrollViewerTouchBehavior" class="text-break">ScrollViewerTouchBehavior Class
</h1>
  <div class="markdown level0 summary"><p>Adds touch support to MS ScrollViewer to scroll with the finger over the scrolling area.</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"><span class="xref">ScrollViewerTouchBehavior</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>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.Core.html">C1.WPF.Core</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.Core.dll</h6>
  <h5 id="C1_WPF_Core_ScrollViewerTouchBehavior_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ScrollViewerTouchBehavior : FrameworkElement, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ScrollViewerTouchBehavior
    Inherits FrameworkElement
    Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient</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_Core_ScrollViewerTouchBehavior__ctor" data-uid="C1.WPF.Core.ScrollViewerTouchBehavior.#ctor">
          <a class="xref" href="C1.WPF.Core.ScrollViewerTouchBehavior.-ctor.html#C1_WPF_Core_ScrollViewerTouchBehavior__ctor">ScrollViewerTouchBehavior()</a>
        </td>
        <td class="markdown level1 summary"></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_Core_ScrollViewerTouchBehavior_HasInertiaProperty" data-uid="C1.WPF.Core.ScrollViewerTouchBehavior.HasInertiaProperty">
          <a class="xref" href="C1.WPF.Core.ScrollViewerTouchBehavior.HasInertiaProperty.html">HasInertiaProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Core.ScrollViewerTouchBehavior.HasInertia.html#C1_WPF_Core_ScrollViewerTouchBehavior_HasInertia">HasInertia</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_ScrollViewerTouchBehavior_IgnoreSwipeProperty" data-uid="C1.WPF.Core.ScrollViewerTouchBehavior.IgnoreSwipeProperty">
          <a class="xref" href="C1.WPF.Core.ScrollViewerTouchBehavior.IgnoreSwipeProperty.html">IgnoreSwipeProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Core.ScrollViewerTouchBehavior.IgnoreSwipe.html#C1_WPF_Core_ScrollViewerTouchBehavior_IgnoreSwipe">IgnoreSwipe</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_ScrollViewerTouchBehavior_PanningDirectionProperty" data-uid="C1.WPF.Core.ScrollViewerTouchBehavior.PanningDirectionProperty">
          <a class="xref" href="C1.WPF.Core.ScrollViewerTouchBehavior.PanningDirectionProperty.html">PanningDirectionProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Core.ScrollViewerTouchBehavior.PanningDirection.html#C1_WPF_Core_ScrollViewerTouchBehavior_PanningDirection">PanningDirection</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_ScrollViewerTouchBehavior_TouchBehaviorProperty" data-uid="C1.WPF.Core.ScrollViewerTouchBehavior.TouchBehaviorProperty">
          <a class="xref" href="C1.WPF.Core.ScrollViewerTouchBehavior.TouchBehaviorProperty.html">TouchBehaviorProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the TouchBehavior attached 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_Core_ScrollViewerTouchBehavior_HasInertia" data-uid="C1.WPF.Core.ScrollViewerTouchBehavior.HasInertia">
          <a class="xref" href="C1.WPF.Core.ScrollViewerTouchBehavior.HasInertia.html#C1_WPF_Core_ScrollViewerTouchBehavior_HasInertia">HasInertia</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the touch scrolling will have inertia.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_ScrollViewerTouchBehavior_IgnoreSwipe" data-uid="C1.WPF.Core.ScrollViewerTouchBehavior.IgnoreSwipe">
          <a class="xref" href="C1.WPF.Core.ScrollViewerTouchBehavior.IgnoreSwipe.html#C1_WPF_Core_ScrollViewerTouchBehavior_IgnoreSwipe">IgnoreSwipe</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the swipe gesture is ignored.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_ScrollViewerTouchBehavior_PanningDirection" data-uid="C1.WPF.Core.ScrollViewerTouchBehavior.PanningDirection">
          <a class="xref" href="C1.WPF.Core.ScrollViewerTouchBehavior.PanningDirection.html#C1_WPF_Core_ScrollViewerTouchBehavior_PanningDirection">PanningDirection</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the panning direction.</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_Core_ScrollViewerTouchBehavior_GetTouchBehavior_System_Windows_Controls_ScrollViewer_" data-uid="C1.WPF.Core.ScrollViewerTouchBehavior.GetTouchBehavior(System.Windows.Controls.ScrollViewer)">
          <a class="xref" href="C1.WPF.Core.ScrollViewerTouchBehavior.GetTouchBehavior.html#C1_WPF_Core_ScrollViewerTouchBehavior_GetTouchBehavior_System_Windows_Controls_ScrollViewer_">GetTouchBehavior(ScrollViewer)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the touch behavior associated with the specified ScrollViewer.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_ScrollViewerTouchBehavior_SetTouchBehavior_System_Windows_Controls_ScrollViewer_C1_WPF_Core_ScrollViewerTouchBehavior_" data-uid="C1.WPF.Core.ScrollViewerTouchBehavior.SetTouchBehavior(System.Windows.Controls.ScrollViewer,C1.WPF.Core.ScrollViewerTouchBehavior)">
          <a class="xref" href="C1.WPF.Core.ScrollViewerTouchBehavior.SetTouchBehavior.html#C1_WPF_Core_ScrollViewerTouchBehavior_SetTouchBehavior_System_Windows_Controls_ScrollViewer_C1_WPF_Core_ScrollViewerTouchBehavior_">SetTouchBehavior(ScrollViewer, ScrollViewerTouchBehavior)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets a touch behavior to a ScrollViewer.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
