Pre loader

Using the StyleKey for VerticalLineAnnotationViewModel how do I add an image to the Label section of the Vertical Line Annotation?

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

I would like to add an image or icon to the bottom of the Vertical Line Annotation, where the AnnotationLabel is.

Is there a way to do this using the StyleKey?

I have a lot of Vertical Line Annotations and I am trying to make some of them look different other than just color. I need ways to show different vertical line annotations and this could be one of them.

Version
5
  • You must to post comments
0
0

Hy Ryan,

Thanks for your inquiry.
You can declare AnnotationLabels in XAML inside a Style, then apply the style via a StyleKey to an Annotation. To put an image into an AnnotationLabel, you should provide a custom Template for it holding this image. Please find an example of an AnnotationLabel template in the “Templating the VerticalLineAnnotation
” section of the following documentation:
https://www.scichart.com/documentation/v5.x/webframe.html#The%20VerticalLineAnnotation%20Type.html

Hope this helps,

With best regards,
Oleksandr

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies