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..
- manish Bhardwaj asked 10 years ago
- last edited 10 years ago
- You must login to post comments
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!
- Guest answered 10 years ago
- You must login to post comments
Please login first to submit.