Pre loader

Visibility of annotations in .cs file

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 want to change the visibility of annotations in .cs file

MyLine.Visibility = System.Windows.Visibility.Hidden;

where MyLine is an annotation

s:LineArrowAnnotation x:Name=”MyLine” X1=”1″ Y1=”0″ X2=”1000″ Y2=”0″ Stroke=”Black” StrokeThickness=”1″ Visibility=”Visible” StrokeDashArray=”10,5″

However even after changing it to hidden the line still displays,

Any suggestions are appreciated..

PS: I am able to modify the location with no problem at all..

  • You must to post comments
0
0

Hi there,

The Visibility property is reserved for internal usage. To hide/show an annotation, please, use the IsHidden dependency property or the Hide()/Show() methods. Hope this helps!

  • You must to post comments
0
0

Thanks that works

  • 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