SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components

All Answers » Re: [cleaned]Editing annotations and keeping track of them in an mvvm application » Comments for "Re: [cleaned]Editing annotations and keeping track of them in an mvvm application"
  • Lisbeth Skogland
    Hi Andrew Thanks a lot for your model, have spent a little time rewriting to align with that now, and it works great. Except for one minor detail, my annotations are editable and my viewmodels aren't updating as I move them around. The result being them jumping back to their original position as they get rebuilded. How do I handle that? Lisbeth
  • Andrew
    Ok, have you tried a TwoWay binding on X1,Y1,X2,Y2 properties to the viewmodel properties? This *should* theoretically work although we've not testing it - you're the annotation expert now! ;-)
  • Lisbeth Skogland
    Now this was strange... that was about the last thing I tried before posting and it didn't work. Now all of a sudden it does, must have been a rebuild issue of some sort... anyway, looks like I have everything I need now to finish the features then. Thank you so much for your input, you probably saved a lot of hours on this. Lisbeth
  • Andrew
    No problem at all, if we can save our customers a couple of hours then we're doing our jobs & adding value! BTW your example reminded me to create a tutorial on this topic. We're pretty busy at the moment but maybe after things settle down with our next version it could be a good time to do it. So thanks - appreciate jogging my memory! Andrew
  • Abhilash R
    Hi Lisbeth/ Andrew Could you please share your code ? It will be great if you create a tutorial on this topic.
  • Andrew
    Hi Abhilash, unfortunately we don't have source-code for the above, but we do have an (old) tutorial which gives you the general idea and that is here: https://www.scichart.com/databinding-annotations-with-mvvm. Does this help?