Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
bozalina opened this issue Feb 24, 2014 · 4 comments
Assignees
Labels
Milestone

Comments

@bozalina
Copy link

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!

@punker76
Copy link
Owner

@bozalina ups, i'll look into

@dlangerenken
Copy link

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

@punker76 punker76 self-assigned this Mar 20, 2014
@punker76 punker76 added the bug label Mar 20, 2014
punker76 added a commit that referenced this issue Mar 20, 2014
fix #92 Unable to cast object of type 'System.Windows.Documents.Run' to type 'System.Windows.Media.Visual'
@punker76 punker76 added this to the v0.1.4 milestone May 28, 2014
@msoyer34
Copy link

msoyer34 commented Apr 1, 2022

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.

@punker76
Copy link
Owner

punker76 commented Apr 1, 2022

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants