Jump to content
Software FX Community

Chart mouse events


Recommended Posts

I have difficulties in using chart mouse events.First, I was suprised when I used the MouseDown event on the chart and nothing append when I clicked on my Area SerieAttributes.However, events are fired on my scatter SerieAttributes.The MouseDown event is not fired on the background, axes labels, legend, title...How am i supposed to get theses events ? Which elements of the chart can fire MouseDown events ?Then, I wanted to move my annotations. So I tried something different : I added a MouseDown and MouseUp event handlers on my TextBlock and a MouseMove event handler on the chart.Once I am in my MouseMove event handler how can I get the object I am trying to move and how can I set it to the new position ?I didn't find enougth information in the HitTestResults to retrieve my annotation.What if I wanted to do the same with a CustomGridLine ?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...