Hello I am using this example to to MVVM Annoations
I would like to save user drawn annotation . I was able get the user Annotation into
AnnotationViewModels = new ObservableCollection();
But now I can’t serialize as mentioned in this post
https://www.scichart.com/questions/wpf/is-there-a-way-to-serialize-just-annotations
any way to serialize IAnnotationViewModel or convert IAnnotationViewModel to IAnnotation so I can serialize the AnnoationCollection.
Please guide
thanks
- Praveen D asked 2 weeks ago
- last edited 2 weeks ago
- Clarification Assuming AnnotationViewModels = new ObservableCollection(); I meant serialize AnnotationViewModels or convert AnnotationViewModels to AnnotationCollection Also how to deserialize back to correct AnnotationViewModels thanks
- You must login to post comments
Hi Praveen,
Thanks for your inquiry.
SciChart supports serialization of the entire SciChartSurface to XML.
You can find more details in the following documentation article:
SciChart WPF Documentation – Serialization _ WPF Chart Documentation
However, serialization of chart parts (e.g., only Annotations) and ViewModels is not supported out of the box.
We can recommend implementing serialization of ViewModels on your side though.
Kind regards,
Lex, SciChart Technical Support Engineer
- Lex answered 1 week ago
- You must login to post comments
Please login first to submit.