Pre loader

Custom Annotation AnchorPoint

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

Hi Guys,

I am creating and placing my custom annotation on my chart and its all fine.

Just a simple question :

When the annotation is created and placed I can see its anchor point which disappears (hide) when I select (click) on the chart surface.

Is there a way (programmatically) to “unselect” the custom annotation just after it has been placed in order the anchor points disappear ?

Thanks to you all

Kind Regards

Giuseppe

  • You must to post comments
0
0

Hi Giuseppe,

Thanks for your question. Annotations provide 3 properties which control interaction, these are IsEditable, IsSelected and CanEditText.

The IsEditable property, when set to “False”, prohibit any kind of interactions, and an annotation cannot be selected either.

The IsSelected property makes an annotation selected, that is, green anchor points appear and it makes possible to move/resize/edit text on an annotation.

The CanEditText property allows to edit text, if an annotation has inbuilt text labels.

So you should set IsSelected to “False” to deselect an annotation, or IsEditable to “False” to forbid any interaction.

Hope this helps,

Best regards,
Yuriy

  • You must to post comments
0
0

Hi Andrew & Support Guys,

I set the bools on the annotation as you suggested buy I still see the anchor points appear and disappear only when the user changes the focus to the chart tile surface.
I left this issue as it was because I have a three level injection framework in my app . MVVM that calls a control which calls surface generic chart management, quite complex thing. I thought it was due to this tree level management, as in your example solution It was working and to make a myself a test solution it would have taken quite a while with an un certain result.

In fact in the previous version 2.3 the anchor points where white and quite small 2×2 pixels or something like that, for the end user no problems as there where quite difficult to see. remember that they disappear as the user focused the chart surface.

After upgrading to the last SL supported version 3.61 I have noticed now that anchor points have become quite bigger and green colored.

Now they are much more visible ! Is there a way to Style template them , if so I could bring them back to a smaller and transparent look. ?

Adding you a screenshot in order to let you understand what I am experiencing.

Images
  • You must to post comments
0
0

Hi Andrew & Support Guys,

I set the bools on the annotation as you suggested buy I still see the anchor points appear and disappear only when the user changes the focus to the chart tile surface.
I left this issue as it was because I have a three level injection framework in my app . MVVM that calls a control which calls surface generic chart management, quite complex thing. I thought it was due to this tree level management, as in your example solution It was working and to make a myself a test solution it would have taken quite a while with an un certain result.

In fact in the previous version 2.3 the anchor points where white and quite small 2×2 pixels or something like that, for the end user no problems as there where quite difficult to see. remember that they disappear as the user focused the chart surface.

After upgrading to the last SL supported version 3.61 I have noticed now that anchor points have become quite bigger and green colored.

Now they are much more visible ! Is there a way to Style template them , if so I could bring them back to a smaller and transparent look. ?

Adding you a screenshot in order to let you understand what I am experiencing.

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