Hide DockableContent and MVVM

Mar 12, 2010 at 6:27 PM

Hi everybody

First of all I want to thank for this fantastic library. I'm creating an application using the MVVM pattern. So I have several menu items with a checkbox where you can choose if you want to display a specific dockablecontent or if you want to hide it. So my menu item is bound to a boolean property in my view model. In my view model I have another property of the type DockableContentState which is returning either the value Docked or Hidden based on the boolean property of the menu item. Now I would like to bind the DockableContent to this property.

Any idea how I can do this? I don't want to use the DockingManager in the code behind, I would like to use the binding engine in order to follow the MVVM pattern...

thanks in advance for your help