HitTestResultBehavior Enumeration
Determines whether to continue the enumeration of any remaining visual objects during a hit test.
Assembly: PresentationCore (in PresentationCore.dll)
| Member name | Description | |
|---|---|---|
| Continue | Continue hit testing against the next visual in the visual tree hierarchy. | |
| Stop | Stop any further hit testing and return from the callback. |
A hit test results callback method defines the actions that you perform when a hit test is identified on a particular visual object in the visual tree. After you perform the actions, you return a HitTestResultBehavior value that determines whether to continue the enumeration of any other visual objects.
You can enumerate all visual objects in a visual tree whose geometry contains a specified coordinate value. By returning Continue in your hit test callback method, you can identify all visual objects that are hit, even those that may be partly or wholly obscured by other visual objects.
Available since 3.0