# C1.WinUI.Core.C1DragPreviewEventArgs

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WinUI_Core_C1DragPreviewEventArgs" data-uid="C1.WinUI.Core.C1DragPreviewEventArgs" class="text-break">C1DragPreviewEventArgs Class
</h1>
  <div class="markdown level0 summary"><p>Contains information of the DragStarting event.</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.eventargs">EventArgs</a></div>
    <div class="level2"><a class="xref" href="C1.WinUI.Core.C1InputEventArgs.html">C1InputEventArgs</a></div>
    <div class="level3"><a class="xref" href="C1.WinUI.Core.C1DragEventArgs.html">C1DragEventArgs</a></div>
    <div class="level4"><span class="xref">C1DragPreviewEventArgs</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WinUI.Core.html">C1.WinUI.Core</a></h6>
  <h6><strong>Assembly</strong>: C1.WinUI.Core.dll</h6>
  <h5 id="C1_WinUI_Core_C1DragPreviewEventArgs_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class C1DragPreviewEventArgs : C1DragEventArgs</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class C1DragPreviewEventArgs
    Inherits C1DragEventArgs</code></pre>
  </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_WinUI_Core_C1DragPreviewEventArgs_Cancel" data-uid="C1.WinUI.Core.C1DragPreviewEventArgs.Cancel">
          <a class="xref" href="C1.WinUI.Core.C1DragPreviewEventArgs.Cancel.html#C1_WinUI_Core_C1DragPreviewEventArgs_Cancel">Cancel</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the recognition of this gesture is canceled.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WinUI_Core_C1DragPreviewEventArgs_CaptureElementOnPointerPressed" data-uid="C1.WinUI.Core.C1DragPreviewEventArgs.CaptureElementOnPointerPressed">
          <a class="xref" href="C1.WinUI.Core.C1DragPreviewEventArgs.CaptureElementOnPointerPressed.html#C1_WinUI_Core_C1DragPreviewEventArgs_CaptureElementOnPointerPressed">CaptureElementOnPointerPressed</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the element will be captured in pointer pressed event (MouseLeftButtonDown in SL and WPF and PointerPressed in WINUI) or in the first pointer move event (MouseMove in SL and WPF and PointerMoved in WINUI).<remarks>Capturing the element on mouse down will cause Click, DoubleClick and MouseLeftButtonUp events not to be fired in sub-elements (nested elements in the visual tree), whereas capturing the element on the first mouse move can make it difficult for final users to drag small elements quickly.</remarks></p>
</td>
      </tr>
      <tr>
        <td id="C1_WinUI_Core_C1DragPreviewEventArgs_InitialThreshold" data-uid="C1.WinUI.Core.C1DragPreviewEventArgs.InitialThreshold">
          <a class="xref" href="C1.WinUI.Core.C1DragPreviewEventArgs.InitialThreshold.html#C1_WinUI_Core_C1DragPreviewEventArgs_InitialThreshold">InitialThreshold</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the number of pixels the gesture will have to pass in order to start.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WinUI_Core_C1DragPreviewEventArgs_Mode" data-uid="C1.WinUI.Core.C1DragPreviewEventArgs.Mode">
          <a class="xref" href="C1.WinUI.Core.C1DragPreviewEventArgs.Mode.html#C1_WinUI_Core_C1DragPreviewEventArgs_Mode">Mode</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the mode indicating the sort of drag to be listened.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WinUI_Core_C1DragPreviewEventArgs_Origin" data-uid="C1.WinUI.Core.C1DragPreviewEventArgs.Origin">
          <a class="xref" href="C1.WinUI.Core.C1DragPreviewEventArgs.Origin.html#C1_WinUI_Core_C1DragPreviewEventArgs_Origin">Origin</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the position of original touch point.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WinUI_Core_C1DragPreviewEventArgs_StartByHolding" data-uid="C1.WinUI.Core.C1DragPreviewEventArgs.StartByHolding">
          <a class="xref" href="C1.WinUI.Core.C1DragPreviewEventArgs.StartByHolding.html#C1_WinUI_Core_C1DragPreviewEventArgs_StartByHolding">StartByHolding</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether drag will be initiated by a hold operation.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
