You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know this is a poor report, but it is all information I have got - just a stacktrace.
InvalidOperationException: This Visual is not connected to a PresentationSource.
[GongSolutions.WPF.DragDrop]GongSolutions.Wpf.DragDrop.DragDrop/<>c
internal void b__34_0(Point point);
IL Offset=0x0013.
[GongSolutions.WPF.DragDrop]GongSolutions.Wpf.DragDrop.Utilities.MouseHelper/<>c__DisplayClass1_0
internal void b__0(object _, EventArgs _);
IL Offset=0x0028.
[...] skipping parts in Windows
[GongSolutions.WPF.DragDrop]GongSolutions.Wpf.DragDrop.DragDrop
private static void DoDragSourceMove(object sender, Func`2<class [PresentationCore]System.Windows.IInputElement,valuetype [WindowsBase]System.Windows.Point> getPosition);
IL Offset=0x01b8.
[GongSolutions.WPF.DragDrop]GongSolutions.Wpf.DragDrop.DragDrop
private static void DragSourceOnMouseMove(object sender, MouseEventArgs e);
IL Offset=0x007c.
System is Windows 10.0.19045.0
The drag/drop operation is on a DataGrid inside an element host of a windows forms app.
As this error already happened a few times, but I really can't find a way to reproduce it at will, I would suggest that you maybe just catch this kind of exception in DoDragSource move and ignore the attempted operation?
I am using version 3.2.1 or your package. Thanks!
The text was updated successfully, but these errors were encountered:
@PatrickKursawe You can handle exceptions by yourself. You need to derive (as an example) from the DefaultDragHandler or create a complete new one from IDragSource and use then that at your ItemsSource.
publicclassDefaultDragHandlerImpl:DefaultDragHandler{publicoverrideboolTryCatchOccurredException(Exceptionexception){if(exception is InvalidOperationException){// log or do something special// with this you say that you handle this exceptionreturntrue;}returnbase.TryCatchOccurredException(exception);}}
I know this is a poor report, but it is all information I have got - just a stacktrace.
InvalidOperationException: This Visual is not connected to a PresentationSource.
[GongSolutions.WPF.DragDrop]GongSolutions.Wpf.DragDrop.DragDrop/<>c
internal void b__34_0(Point point);
IL Offset=0x0013.
[GongSolutions.WPF.DragDrop]GongSolutions.Wpf.DragDrop.Utilities.MouseHelper/<>c__DisplayClass1_0
internal void b__0(object _, EventArgs _);
IL Offset=0x0028.
[...] skipping parts in Windows
[GongSolutions.WPF.DragDrop]GongSolutions.Wpf.DragDrop.DragDrop
private static void DoDragSourceMove(object sender, Func`2<class [PresentationCore]System.Windows.IInputElement,valuetype [WindowsBase]System.Windows.Point> getPosition);
IL Offset=0x01b8.
[GongSolutions.WPF.DragDrop]GongSolutions.Wpf.DragDrop.DragDrop
private static void DragSourceOnMouseMove(object sender, MouseEventArgs e);
IL Offset=0x007c.
System is Windows 10.0.19045.0
The drag/drop operation is on a DataGrid inside an element host of a windows forms app.
As this error already happened a few times, but I really can't find a way to reproduce it at will, I would suggest that you maybe just catch this kind of exception in DoDragSource move and ignore the attempted operation?
I am using version 3.2.1 or your package. Thanks!
The text was updated successfully, but these errors were encountered: