SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components
Hi, Andrew. sorry to bother you.
if i changed the YValue by drag the point on series(http://support.scichart.com/index.php?/Knowledgebase/Article/View/17239/32/custom-chartmodifiers—part-5—select-and-drag-a-data-point), i want to set data repository dirty. how to notify the viewmodel, by even, or binding. could you tell me the better( rational, even best ) way?
sorry, i’m a newer to WPF.
In the article Custom ChartModifiers – Part 5 – Select and Drag a Data-Point we present a custom ChartModifierBase which allows you to select and drag data-points.
You can modify this code to notify your viewmodel in one of the following ways:
Add an event which is raised in OffsetPointAt(). Use EventToCommand to notify the viewmodel
Inside OffsetPointAt(), cast this.DataContext to your viewmodel type and call a method directly
Method (1) would be preferable, but requires slightly more code. It’s up to you how you with to implement this, hopefully I’ve given you some ideas!
Please login first to submit.