This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hello We need to hook up to an event that is triggered each time you click on a series(in our case a line series). At the moment the graph component has a SelectedSeriesChangedEvent, but that is triggered when the selection is changed. Is it possible to get such an event implemented or do you have any suggestions on how to hook up such an event? We add our series dynamically through a class that syncs a collection of dataseries to the Graph. Best regards Nicklas |
|
|
Hello Nicklas For now try the following:
where chart is a Chart instance.
This event handler will be called whenever the mouse is pressed over the chart. If the OriginalSource of the event is a Path, and the DataContext of that path is a LineSeries (or similar), then you'll know the mouse has been pressed on the line of the series. If your lines are very thin, or if you find that you need to press the mouse very close to the line, then get the next nightly build which will make the above code equally as sensitive as the logic that selects the series. For now I have made a note to add proper API for this in a future version. Jason Fauchelle |
|