Dmitry Tashkinov
Dmitry Tashkinov

Reputation: 1994

Make an UI element transparent to mouse events

I have a lot of UI elements placed inside a canvas. Some of them are not supposed to handle mouse events while they can overlap with and cover other elements that must handle mouse events. When a mouse event occures, I want it to pass throuh all the elements that are not supposed to handle it to reach an element that might be covered by them, but can handle it. Is there any way to do this?

I need to do this in a Silverlight project, but also interested in WPF solutions.

Upvotes: 1

Views: 660

Answers (1)

Thomas Levesque
Thomas Levesque

Reputation: 292425

Just set the IsHitTestVisible property to false

Upvotes: 8

Related Questions