# C1.WPF.DragDropEventArgs

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_DragDropEventArgs" data-uid="C1.WPF.DragDropEventArgs" class="text-break">DragDropEventArgs Class
</h1>
  <div class="markdown level0 summary"><p>Class that contains data for drag-and-drop events.</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"><span class="xref">DragDropEventArgs</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.html">C1.WPF</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.4.6.2.dll</h6>
  <h5 id="C1_WPF_DragDropEventArgs_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class DragDropEventArgs : EventArgs</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class DragDropEventArgs
    Inherits EventArgs</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_DragDropEventArgs__ctor_System_Windows_RoutedEventArgs_System_Windows_UIElement_System_Windows_UIElement_C1_WPF_DragDropEffect_System_Windows_Controls_ScrollViewer_" data-uid="C1.WPF.DragDropEventArgs.#ctor(System.Windows.RoutedEventArgs,System.Windows.UIElement,System.Windows.UIElement,C1.WPF.DragDropEffect,System.Windows.Controls.ScrollViewer)">
          <a class="xref" href="C1.WPF.DragDropEventArgs.-ctor.html#C1_WPF_DragDropEventArgs__ctor_System_Windows_RoutedEventArgs_System_Windows_UIElement_System_Windows_UIElement_C1_WPF_DragDropEffect_System_Windows_Controls_ScrollViewer_">DragDropEventArgs(RoutedEventArgs, UIElement, UIElement, DragDropEffect, ScrollViewer)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.WPF.DragDropEventArgs.html">DragDropEventArgs</a>.</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_DragDropEventArgs_DragSource" data-uid="C1.WPF.DragDropEventArgs.DragSource">
          <a class="xref" href="C1.WPF.DragDropEventArgs.DragSource.html#C1_WPF_DragDropEventArgs_DragSource">DragSource</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement">UIElement</a> that is acting as a drag source.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_DragDropEventArgs_DropTarget" data-uid="C1.WPF.DragDropEventArgs.DropTarget">
          <a class="xref" href="C1.WPF.DragDropEventArgs.DropTarget.html#C1_WPF_DragDropEventArgs_DropTarget">DropTarget</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement">UIElement</a> that is acting as a drop target.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_DragDropEventArgs_Effect" data-uid="C1.WPF.DragDropEventArgs.Effect">
          <a class="xref" href="C1.WPF.DragDropEventArgs.Effect.html#C1_WPF_DragDropEventArgs_Effect">Effect</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.WPF.DragDropEffect.html">DragDropEffect</a> that will be applied when the user drops the
<a class="xref" href="C1.WPF.DragDropEventArgs.DragSource.html#C1_WPF_DragDropEventArgs_DragSource">DragSource</a> element into the <a class="xref" href="C1.WPF.DragDropEventArgs.DropTarget.html#C1_WPF_DragDropEventArgs_DropTarget">DropTarget</a> element.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_DragDropEventArgs_ScrollViewer" data-uid="C1.WPF.DragDropEventArgs.ScrollViewer">
          <a class="xref" href="C1.WPF.DragDropEventArgs.ScrollViewer.html#C1_WPF_DragDropEventArgs_ScrollViewer">ScrollViewer</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.WPF.DragDropEventArgs.ScrollViewer.html#C1_WPF_DragDropEventArgs_ScrollViewer">ScrollViewer</a> that will scroll automatically during the
drag drop operation when the mouse is near its edge.</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_DragDropEventArgs_GetPosition_System_Windows_UIElement_" data-uid="C1.WPF.DragDropEventArgs.GetPosition(System.Windows.UIElement)">
          <a class="xref" href="C1.WPF.DragDropEventArgs.GetPosition.html#C1_WPF_DragDropEventArgs_GetPosition_System_Windows_UIElement_">GetPosition(UIElement)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the mouse coordinates relative to a given <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement">UIElement</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
