Pre loader

How to derive new type of annotation from annotationbase?

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

Answered
0
0

Hi, I need some new type of annotation, for example, TriangleAnnotation or HexagonalAnnotation. I would rather derive the new type from AnnotationBase than from CustomAnnotation, because I need more control points than one. what shall I do?

  • You must to post comments
Best Answer
1
0

Hi there,

The best thing to do is to inherit or use a BoxAnnotation and change the template. We have an example here:

https://www.scichart.com/questions/question/resizing-a-custom-annotation

This will give you control points at all four corners.

Let me know if this helps!

Best regards,
Andrew

  • wang siyuan
    I try it as you suggested, it works. Thank you so much
  • You must to post comments
0
0

Thank you for the quick reply. Let me try it.

  • You must to post comments
Showing 2 results
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