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

New Post: AvalonDock - user-controlled ability to display document pane or not.

$
0
0
Hi.

I'm a newbie using AvalonDock, and would like to know if it is possible to 'dynamically' show or hide the LayoutDocumentPane based on user input.

In our application the end-user is basically responsible for creating the layout of a screen, and we give them a 'design mode', in which we make the DockingManager 'editable', allow them to drag on and arrange components (which we build).

One of the options available to them in design mode is to enable/disable Document mode, which basically toggles the ability and visibility of the LayoutDocumentPane.

My question is how would one best achieve this since IsVisible is readonly on the LayoutDocumentPane? I have tried setting the DockWidth to 0 to hide it to no avail.

Would I create 2 different LayoutPanels, one for each mode? And when switching to the disable Document Mode, i move all items from the DocumentsSource into the AnchorablesSource?

Any guidance appreciated.

Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>