Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

New Post: AvalongDock - LayoutDocumentPane - IsVisible binding

$
0
0
Maybe I'm not seeing it in your code but...
The goal is to be able to set a property in the ViewModel to false, and that would cause the DocumentPane to no longer be visible.
In otherwords setting a property to false would be pushed to the DocumentPane.IsVisible property. But that property is read-only (get but no set).
So there is no way to do two-way binding on the visibility of the DocumentPane.

Image

I did think about inheriting from LayoutDocumentPane then implement .Show/.Hide actions based on a bool property... But this control doesn't have any actions that resemble show/hide.

So I'm not seeing a way to make the LayoutDocumentPane invisible/hidden in any kind of normal way. It's starting to look like i'm going to have to totally remove it from the layout, store it and its location reference etc. Then when I what to show it again, I'll have to re-add it to the layout. That's a major pain in the arse, all because it wasn't created to honor the standard WPF Visibility! property like other controls.

Viewing all articles
Browse latest Browse all 4964

Trending Articles