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
- Lisbeth Skogland asked 11 years ago
- You must login to post comments
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
- Yuriy Zadereckiy answered 11 years ago
-
There is now also an "IsHidden" property which can be set in XAML and bound to your viewmodel regards Ian
-
Why was IsHidden chosen instead of IsVisible? Just curious.
-
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 login to post comments
Please login first to submit.