# C1.WPF.C1DragDropManager

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_C1DragDropManager" data-uid="C1.WPF.C1DragDropManager" class="text-break">C1DragDropManager Class
</h1>
  <div class="markdown level0 summary"><p>Provides methods for drag-and-drop operations in Silverlight applications.</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"><span class="xref">C1DragDropManager</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_C1DragDropManager_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class C1DragDropManager</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class C1DragDropManager</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_C1DragDropManager__ctor" data-uid="C1.WPF.C1DragDropManager.#ctor">
          <a class="xref" href="C1.WPF.C1DragDropManager.-ctor.html#C1_WPF_C1DragDropManager__ctor">C1DragDropManager()</a>
        </td>
        <td class="markdown level1 summary"></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_C1DragDropManager_AutoScroll" data-uid="C1.WPF.C1DragDropManager.AutoScroll">
          <a class="xref" href="C1.WPF.C1DragDropManager.AutoScroll.html#C1_WPF_C1DragDropManager_AutoScroll">AutoScroll</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the <a class="xref" href="C1.WPF.C1DragDropManager.html">C1DragDropManager</a> should automatically
scroll the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.scrollviewer">ScrollViewer</a> that contains the drop target.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1DragDropManager_AutoScrollDelay" data-uid="C1.WPF.C1DragDropManager.AutoScrollDelay">
          <a class="xref" href="C1.WPF.C1DragDropManager.AutoScrollDelay.html#C1_WPF_C1DragDropManager_AutoScrollDelay">AutoScrollDelay</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the number of milliseconds between auto scroll steps.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1DragDropManager_AutoScrollEdge" data-uid="C1.WPF.C1DragDropManager.AutoScrollEdge">
          <a class="xref" href="C1.WPF.C1DragDropManager.AutoScrollEdge.html#C1_WPF_C1DragDropManager_AutoScrollEdge">AutoScrollEdge</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the distance between the mouse and the edges of a drag target element that
triggers the auto scroll process.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1DragDropManager_AutoScrollStep" data-uid="C1.WPF.C1DragDropManager.AutoScrollStep">
          <a class="xref" href="C1.WPF.C1DragDropManager.AutoScrollStep.html#C1_WPF_C1DragDropManager_AutoScrollStep">AutoScrollStep</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the number of pixels to scroll in each auto scroll step.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1DragDropManager_Canvas" data-uid="C1.WPF.C1DragDropManager.Canvas">
          <a class="xref" href="C1.WPF.C1DragDropManager.Canvas.html#C1_WPF_C1DragDropManager_Canvas">Canvas</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a reference to the <span class="xref">C1.Silverlight.C1DragDropManager.Canvas</span> being used to show the drag-and-drop process.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1DragDropManager_DragSourceStyle" data-uid="C1.WPF.C1DragDropManager.DragSourceStyle">
          <a class="xref" href="C1.WPF.C1DragDropManager.DragSourceStyle.html#C1_WPF_C1DragDropManager_DragSourceStyle">DragSourceStyle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the style applied to the source marker.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1DragDropManager_DragTargetStyle" data-uid="C1.WPF.C1DragDropManager.DragTargetStyle">
          <a class="xref" href="C1.WPF.C1DragDropManager.DragTargetStyle.html#C1_WPF_C1DragDropManager_DragTargetStyle">DragTargetStyle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the style applied to the target marker.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1DragDropManager_DragThreshold" data-uid="C1.WPF.C1DragDropManager.DragThreshold">
          <a class="xref" href="C1.WPF.C1DragDropManager.DragThreshold.html#C1_WPF_C1DragDropManager_DragThreshold">DragThreshold</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the distance in pixels that the mouse must move before a drag operation starts.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1DragDropManager_SourceMarker" data-uid="C1.WPF.C1DragDropManager.SourceMarker">
          <a class="xref" href="C1.WPF.C1DragDropManager.SourceMarker.html#C1_WPF_C1DragDropManager_SourceMarker">SourceMarker</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a reference to the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.border">Border</a> used to highlight the drag source.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1DragDropManager_TargetMarker" data-uid="C1.WPF.C1DragDropManager.TargetMarker">
          <a class="xref" href="C1.WPF.C1DragDropManager.TargetMarker.html#C1_WPF_C1DragDropManager_TargetMarker">TargetMarker</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.border">Border</a> used to indicate the drop location.</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_C1DragDropManager_ClearSources" data-uid="C1.WPF.C1DragDropManager.ClearSources">
          <a class="xref" href="C1.WPF.C1DragDropManager.ClearSources.html#C1_WPF_C1DragDropManager_ClearSources">ClearSources()</a>
        </td>
        <td class="markdown level1 summary"><p>Removes all the registered sources</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1DragDropManager_ClearTargets" data-uid="C1.WPF.C1DragDropManager.ClearTargets">
          <a class="xref" href="C1.WPF.C1DragDropManager.ClearTargets.html#C1_WPF_C1DragDropManager_ClearTargets">ClearTargets()</a>
        </td>
        <td class="markdown level1 summary"><p>Removes all the registered targets</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1DragDropManager_DoDragDrop_System_Windows_UIElement_System_Windows_Input_MouseEventArgs_C1_WPF_DragDropEffect_" data-uid="C1.WPF.C1DragDropManager.DoDragDrop(System.Windows.UIElement,System.Windows.Input.MouseEventArgs,C1.WPF.DragDropEffect)">
          <a class="xref" href="C1.WPF.C1DragDropManager.DoDragDrop.html#C1_WPF_C1DragDropManager_DoDragDrop_System_Windows_UIElement_System_Windows_Input_MouseEventArgs_C1_WPF_DragDropEffect_">DoDragDrop(UIElement, MouseEventArgs, DragDropEffect)</a>
        </td>
        <td class="markdown level1 summary"><p>Initiates a drag drop operation using a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement">UIElement</a> as a source, supporting a specified <a class="xref" href="C1.WPF.DragDropEffect.html">DragDropEffect</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1DragDropManager_OnDragAutoScroll_C1_WPF_DragDropEventArgs_" data-uid="C1.WPF.C1DragDropManager.OnDragAutoScroll(C1.WPF.DragDropEventArgs)">
          <a class="xref" href="C1.WPF.C1DragDropManager.OnDragAutoScroll.html#C1_WPF_C1DragDropManager_OnDragAutoScroll_C1_WPF_DragDropEventArgs_">OnDragAutoScroll(DragDropEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="C1.WPF.C1DragDropManager.DragAutoScroll.html">DragAutoScroll</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1DragDropManager_OnDragDrop_System_Windows_RoutedEventArgs_" data-uid="C1.WPF.C1DragDropManager.OnDragDrop(System.Windows.RoutedEventArgs)">
          <a class="xref" href="C1.WPF.C1DragDropManager.OnDragDrop.html#C1_WPF_C1DragDropManager_OnDragDrop_System_Windows_RoutedEventArgs_">OnDragDrop(RoutedEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="C1.WPF.C1DragDropManager.DragDrop.html">DragDrop</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1DragDropManager_OnDragEnter_System_Windows_RoutedEventArgs_" data-uid="C1.WPF.C1DragDropManager.OnDragEnter(System.Windows.RoutedEventArgs)">
          <a class="xref" href="C1.WPF.C1DragDropManager.OnDragEnter.html#C1_WPF_C1DragDropManager_OnDragEnter_System_Windows_RoutedEventArgs_">OnDragEnter(RoutedEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="C1.WPF.C1DragDropManager.DragEnter.html">DragEnter</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1DragDropManager_OnDragLeave_System_Windows_RoutedEventArgs_" data-uid="C1.WPF.C1DragDropManager.OnDragLeave(System.Windows.RoutedEventArgs)">
          <a class="xref" href="C1.WPF.C1DragDropManager.OnDragLeave.html#C1_WPF_C1DragDropManager_OnDragLeave_System_Windows_RoutedEventArgs_">OnDragLeave(RoutedEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="C1.WPF.C1DragDropManager.DragLeave.html">DragLeave</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1DragDropManager_OnDragOver_System_Windows_RoutedEventArgs_" data-uid="C1.WPF.C1DragDropManager.OnDragOver(System.Windows.RoutedEventArgs)">
          <a class="xref" href="C1.WPF.C1DragDropManager.OnDragOver.html#C1_WPF_C1DragDropManager_OnDragOver_System_Windows_RoutedEventArgs_">OnDragOver(RoutedEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="C1.WPF.C1DragDropManager.DragOver.html">DragOver</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1DragDropManager_OnDragStart_System_Windows_RoutedEventArgs_" data-uid="C1.WPF.C1DragDropManager.OnDragStart(System.Windows.RoutedEventArgs)">
          <a class="xref" href="C1.WPF.C1DragDropManager.OnDragStart.html#C1_WPF_C1DragDropManager_OnDragStart_System_Windows_RoutedEventArgs_">OnDragStart(RoutedEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="C1.WPF.C1DragDropManager.DragStart.html">DragStart</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1DragDropManager_RegisterDragSource_System_Windows_UIElement_C1_WPF_DragDropEffect_System_Windows_Input_ModifierKeys_System_Boolean_" data-uid="C1.WPF.C1DragDropManager.RegisterDragSource(System.Windows.UIElement,C1.WPF.DragDropEffect,System.Windows.Input.ModifierKeys,System.Boolean)">
          <a class="xref" href="C1.WPF.C1DragDropManager.RegisterDragSource.html#C1_WPF_C1DragDropManager_RegisterDragSource_System_Windows_UIElement_C1_WPF_DragDropEffect_System_Windows_Input_ModifierKeys_System_Boolean_">RegisterDragSource(UIElement, DragDropEffect, ModifierKeys, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Registers a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement">UIElement</a> to act as a drag source.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1DragDropManager_RegisterDropTarget_System_Windows_UIElement_System_Boolean_" data-uid="C1.WPF.C1DragDropManager.RegisterDropTarget(System.Windows.UIElement,System.Boolean)">
          <a class="xref" href="C1.WPF.C1DragDropManager.RegisterDropTarget.html#C1_WPF_C1DragDropManager_RegisterDropTarget_System_Windows_UIElement_System_Boolean_">RegisterDropTarget(UIElement, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Registers (or unregisters) an element as a drop target.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1DragDropManager_UnregisterDragSource_System_Windows_UIElement_" data-uid="C1.WPF.C1DragDropManager.UnregisterDragSource(System.Windows.UIElement)">
          <a class="xref" href="C1.WPF.C1DragDropManager.UnregisterDragSource.html#C1_WPF_C1DragDropManager_UnregisterDragSource_System_Windows_UIElement_">UnregisterDragSource(UIElement)</a>
        </td>
        <td class="markdown level1 summary"><p>Un-registers a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement">UIElement</a> as a drag source.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_C1DragDropManager_DragAutoScroll" data-uid="C1.WPF.C1DragDropManager.DragAutoScroll">
          <a class="xref" href="C1.WPF.C1DragDropManager.DragAutoScroll.html">DragAutoScroll</a>
        </td>
        <td class="markdown level1 summary"><p>Fires after the <a class="xref" href="C1.WPF.C1DragDropManager.html">C1DragDropManager</a> automatically scrolls a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.scrollviewer">ScrollViewer</a>
in order to keep the drop location within view.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1DragDropManager_DragDrop" data-uid="C1.WPF.C1DragDropManager.DragDrop">
          <a class="xref" href="C1.WPF.C1DragDropManager.DragDrop.html">DragDrop</a>
        </td>
        <td class="markdown level1 summary"><p>Fires at the end of a drag drop process, when the user releases the mouse button over a registered drop target.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1DragDropManager_DragEnter" data-uid="C1.WPF.C1DragDropManager.DragEnter">
          <a class="xref" href="C1.WPF.C1DragDropManager.DragEnter.html">DragEnter</a>
        </td>
        <td class="markdown level1 summary"><p>Fires during a drag drop process, when the cursor enters a registered drop target.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1DragDropManager_DragLeave" data-uid="C1.WPF.C1DragDropManager.DragLeave">
          <a class="xref" href="C1.WPF.C1DragDropManager.DragLeave.html">DragLeave</a>
        </td>
        <td class="markdown level1 summary"><p>Fires during a drag drop process, when the cursor leaves a registered drop target.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1DragDropManager_DragOver" data-uid="C1.WPF.C1DragDropManager.DragOver">
          <a class="xref" href="C1.WPF.C1DragDropManager.DragOver.html">DragOver</a>
        </td>
        <td class="markdown level1 summary"><p>Fires during a drag drop process, when the cursor moves over a registered drop target.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1DragDropManager_DragStart" data-uid="C1.WPF.C1DragDropManager.DragStart">
          <a class="xref" href="C1.WPF.C1DragDropManager.DragStart.html">DragStart</a>
        </td>
        <td class="markdown level1 summary"><p>Fires when a drag drop process starts.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
