bugfixr
bugfixr

Reputation: 8077

Silverlight - Catching a click of an item underneath another

I've got a silverlight app. The app draws an image, then on top of the image is a mostly transparent ellipse. The ellipse is there for display purposes only.

I had thought I read somewhere that mouseLeftButtonDown events would fire on all objects that are wired up to it, regardless of z-order and if something else was sitting on top of it. I could be totally wrong (and based on my tests I am) -

So is there anyway to get the ellipse to NOT catch the event so that the other object underneath it can catch it?

Thanks in advance

Upvotes: 0

Views: 61

Answers (1)

bugfixr
bugfixr

Reputation: 8077

Ok, so I found the solution. I need to set the IsHitTestVisible property to false, then it ignores clicks.

Upvotes: 3

Related Questions