Skip to content

Commit

Permalink
Merge pull request #502 from softwaretirol/ThreadingProblem
Browse files Browse the repository at this point in the history
Threading Problem
  • Loading branch information
punker76 authored Dec 5, 2024
2 parents c3d1f82 + 01fea07 commit b0526b8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/GongSolutions.WPF.DragDrop/DropTargetAdorner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ public DropTargetAdorner(UIElement adornedElement, IDropInfo dropInfo)

public void Detatch()
{
if (!m_AdornerLayer.Dispatcher.CheckAccess())
{
m_AdornerLayer.Dispatcher.Invoke(this.Detatch);
return;
}

this.m_AdornerLayer.Remove(this);
}

Expand Down

0 comments on commit b0526b8

Please sign in to comment.