Hi,
We are trying to add an image annotation to a View Model. We have closely followed Tutorial 07b – Adding Annotations with MVVM, as well as the Custom Annotations – Adding a WaterMark to a Chart example, but we are not having luck getting anything to show up.
We would like to have something that allows us to pass in the pathway to an image, and then lets us display it on our chart. Depending on different circumstances, we would want to display different images. Is there an example of this type of image annotation somewhere?
Thank you!
- Daisha Utley asked 2 years ago
- You must login to post comments
Hi Daisha,
Thanks for your inquiry.
Please take a look at our custom Watermark example:
https://support.scichart.com/index.php?/Knowledgebase/Article/View/17209/33/
Is this what you are looking for?
- Oleksandr Shvets answered 2 years ago
-
Sorry, I may not have explained the problem very clearly. We are completely working on a ViewModel, so the surface is a ViewModel too. Because of this, the surface does not contain members for the following calls in the code example. “Opacity = 0.25, Content = new CustomAnnotationViewModel() { Logo = “SciChartLogo_Dark.png”, Text = “SciChart” }, ContentTemplate = (DataTemplate) chart.Resources[“AnnotationTemplate”]”. I don’t currently have a way to pass the image location in. Is there possibly a working example of this same type of example happening in a ViewModel? Thank you.
- You must login to post comments
Please login first to submit.