How to set a DockableContent to floating and reposition

Nov 20, 2009 at 9:57 PM

Hello,

I have a general question. I have a "Reset Position" button that should change a DockableContent module to floating (if docked) and reposition the floating DockableContent module to a visible place on the screen (like application position 0,0) in case the module has gotten lost. How can I do this?

 

I am working with a DockingManager and a DockableContent.

 

Nov 20, 2009 at 11:39 PM

Store layout by savelayout()  and restore it again. I am not getting your question. Before reset button click, what's there on layout?

Nov 21, 2009 at 12:17 AM
Edited Nov 21, 2009 at 12:19 AM

Hi Nashrath, I already have a Save and Restore Layout feature working in my app.

 

I have a xaml shell of type "Window" and within the xaml shell I have a "DockingManager" that contains serveral "DockablePanes".

I am putting "DockableContent" xaml UIs inside the "DockablePanes".

I would like to reposition a single "DockableContent" module (the one selected in my listbox) when I hit my reset button. I can't find figure out which properties of the "DocableContent" to change to undock it (if docked) and reposition it.