Tool Competition for Mouse Actions


https://www.nevron.com/Forum/Topic14235.aspx
Print Topic | Close Window

By - 3 Years Ago
I am writing a WPF application and using the WPF control from Nevron. I have a Cartesian chart which has installed both the XAxisScrollTool and a custom tool that I have written in a class derived from NDragTool.

When my chart loads, I can scroll along the X axis using the mouse, thanks to my installation of the XAxisScrollTool. That works well. Once I perform an action, however, that gets my custom tool involved, all mouse actions are intercepted by the custom tool class derived from NDragTool, and I can no longer scroll.

Is there a way, in code, for my custom NDragTool code to say "this mouse action was sent from the scroll bar, so don't process this event"? In other words, how do I know, looking at the NMouseEventArgs sent to me, whether the mouse event was sent from the scroll bar (in which case my custom tool should not process the event) versus the chart's client area (in which case my custom tool should process the event)?
By - 3 Years Ago
Please disregard this post. I changed the base class of my tool class from NDragTool to NTool, and the problem resolved itself.