punker76 / gong-wpf-dragdrop

The GongSolutions.WPF.DragDrop library is a drag'n'drop framework for WPF

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Do not use Application.Current.MainWindow

MichaeIDietrich opened this issue · comments

DragDrop.CreateDragAdorner uses Application.Current.MainWindow if the current element is not hosted directly in a window. Never ever try to guess the correct window by such APIs, this will fail everytime, please simply remove this and return null.

I think this issue goes hand in hand with #165

@FrecherxDachs changed with 0f56678