SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
I manually re-calculate my displayed axis ranges when new data points are appended or when a specific portion of the data is selected to view from a ListBox, but I would like to leave the axis ranges as-is if the user has zoomed-in (using the built-in ZoomModifiers). Is there a way for my ViewModel to know this has happened so I can avoid recalculating in that case?
So you want to have an event / know when a user has zoomed via dragging / panning but NOT if the axis range is changed programmatically, is that right?
Well, one way is to override one of our zoom modifiers and add an event. For instance, see How to detect when zoom Rubberband zoom opertion has occured or Event after zoom in. Does that help?
Most of our modifiers override one or more mouse methods, such as
Finally, if you do override these methods you can add an event, and use EventToCommand to send the message to a Viewmodel.
Does it help?
Please login first to submit.