Pre loader

Hide/show annotations

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

3
0

Hi

I am trying to allow my user to hide/show annotations by binding the visibility property, but I can’t seem to get it to work. Actually when I manually set visibility to Hidden it’s still there. Is that just not implemented?

Lisbeth

  • You must to post comments
2
0

Hi there,

You need to call IAnnotation.Hide() to make it disappear and IAnnotation.Show() to display it again. Thanks for your enquiry, we’ll look how to improve usability of this.

Hope this helps!

Best regards,
Yuriy

  • Ian Carson
    There is now also an "IsHidden" property which can be set in XAML and bound to your viewmodel regards Ian
  • David Adams
    Why was IsHidden chosen instead of IsVisible? Just curious.
    • Guest
    • 9 years ago
    Hi David, the reason is that WPF already provides the IsVisible property on Control (but Silverlight doesn't), so we chose different name to avoid confusion. Another reason is that annotations are WPF elements and Visibility is reserved for internal usage (to quickly virtualize the annotations as they go off-screen), so we introduced a new property which allows binding and changes visibility of an annotation.
  • 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