punker76/gong-wpf-dragdrop

Unable to cast object of type 'System.Windows.Documents.Run' to type 'System.Windows.Media.Visual'

bozalina opened this issue · 4 comments

Hey,

Looks like the code introduced in the fix for issue #84 casts e.OriginalSource to a Visual. If the source is a Run, this cast throws an exception, since Runs aren't Visuals.

Thanks!

@bozalina ups, i'll look into

Any fix available yet? I'm having the same issue at the moment

Hey,

In the new version of gong solutions this occurs again.

image

I have tried to add try-catch method but exception is not from the MenuItem.

@msoyer34 Please open a new issue and provide a simple repo with exactly this issue or give more information about it with some code examples. Thx