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.
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:
Hope this helps,
With best regards,
Please login first to submit.