Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
170
How do I programmatically move and dock a ContentPane?
posted

We have a DockManager with a ContentPane called the Action Panel, and a DocumentContentHost that contains multiple document based Content Panes.  The user is allowed to move the Action Panel and dock it to either the left or the right borders of the DockManager.  We need a programmatic way of restoring this when the app reopens (without saving the entire DockManager layout).

We can find and save the current location of the Action Panel using the ContentPane.PaneLocation property.  However this property is readonly and therefore we can't set it to restore the last location of this ContentPane before the user last exited the application.

Is there a programmatic way of moving the Action Panel ContentPane so its docked to either the left or right edges of the DockManager?

Best regards, and thanks in advance!