Skip to content

Commit

Permalink
ThreadingProblem
Browse files Browse the repository at this point in the history
  • Loading branch information
softwaretirol committed Nov 15, 2024
1 parent 22dfca8 commit 01fea07
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 01fea07

Please sign in to comment.