0

IsHitTestVisible in Overlay example

Anonymous 10 years ago updated by everytimer 10 years ago 2
This discussion was imported from CodePlex

everytimer wrote at 2014-03-17 23:18:

By default in the example "Overlay" the canvas situated after the HelixViewPort3D has set the IsHitTestVisible property to False. What I want is to enable mouse events of the elements that I've rendered. I've set IsHitTestVisible to True, and now I can capture the user input clicks and everything seems to work correctly.

Are there any reason to disable that behavior? Any future disadvantages? If that's the case, what should I do to enable events to the visual element that are plotted? Thanks

objo wrote at 2014-04-29 10:55:

I guess the only issue is that you don't get rotate/zoom etc working when your mouse is over the visuals in your overlay.

everytimer wrote at 2014-04-29 18:15:

Thanks, I've realized about that just after trying it by myself.
Thanks a lot for the nice 3D WPF framework.
Following to this question..

I'm trying to extend the overlay example and trying to capture the event from both the HelixViewPort3D and the overlay canvas. When I turn the IsHitTestVisble to True, the viewport will not be able to capture any interaction events. How can I make both HelixViewPort3D and overlay canvas capture the events?

Thanks a lot!!
What are you trying to do?

I think you can simulate the desired behavior by allowing only HelixViewPort3D capture mouse events and then trigering manually events in the Overlay.