hit-test

Using hit-test bouncing ball in action script 3

I have this code which makes the ball bounce, but what I am looking for is to shoot bullets from the ground and once they hit the ball they should bounce it back upwards. The goal is not to let the ball hit the ground. I am sure this has been done before, but I guess am too dumb to figure it out. The Code: package { public class ball ...

Can I set IsHitTestVisible to false only for right-button events?

Obviously, the straightforward answer to the question is "No", but what's the best way for me to achieve that kind of effect? To explain, here's a bit of background... I have an app that displays an Image plus a couple of layers of overlaid shapes on that image. All of these are placed within a Grid cell, overlapping each other, with th...

How can I tell which Silverlight Popup (or ChildWindow) is topmost?

I am trying to hit test in Silverlight applications to find the elements under the mouse cursor. Normally VisualTreeHelper.FindElementsInHostCoordinates works for this. If there is a Popup open I need to pass in the popup to the hit testing method. If there are multiple popups open, I need to determine the correct (topmost) popup to pas...

Is there any way to hit test for a disabled control?

I'm trying to detect the control under the mouse cursor, regardless of whether the control is enabled or not. VisualTreeHelper.FindElementsInHostCoordinates ignores controls that have their IsEnabled property set to false. Is there any way to change this behavior, or any other way to find the controls at a specific screen location? Tha...