SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

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.