# C1.WPF.C1DragDropManager.UnregisterDragSource

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_C1DragDropManager_UnregisterDragSource_" data-uid="C1.WPF.C1DragDropManager.UnregisterDragSource*">UnregisterDragSource Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_C1DragDropManager_UnregisterDragSource_" data-uid="C1.WPF.C1DragDropManager.UnregisterDragSource*"></a>
<h4 id="C1_WPF_C1DragDropManager_UnregisterDragSource_System_Windows_UIElement_" data-uid="C1.WPF.C1DragDropManager.UnregisterDragSource(System.Windows.UIElement)">UnregisterDragSource(UIElement)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void UnregisterDragSource(UIElement source)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub UnregisterDragSource(source As UIElement)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement">UIElement</a></td>
      <td><span class="parametername">source</span></td>
      <td><p><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement">UIElement</a> that will no longer act as a drag source.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_WPF_C1DragDropManager_UnregisterDragSource_System_Windows_UIElement__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Calling this method has the same effect as registering the element as a drag source with
no effects (DragDropEffect.None).</p>
</div>
</div>
