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
235
DockedLocation being ignored for DockAreaPane
posted

Hi,

we create a DockAreaPane like this:

  DockAreaPane areaPane = new DockAreaPane(DockedLocation.DockedRight, "MyKey" );

  areaPane.ChildPaneStyle = ChildPaneStyle.TabGroup;

  theDockManager.DockAreas.Add(areaPane);

then we add a DockableControlPane like this:

 DockableControlPane controlPane = new DockableControlPane();

 controlPane.Control = theEditorControl;

 areaPane.Panes.Add(controlPane);

finally we show the controlPane like this:

controlPane.Show();

controlPane.Activate();

However, the pane will *always* come up DockedTop!! I've traced in the debugger right up to the p.Show(), and the areaPane DockedLocation is still showing as DockedRight; once I let the program continue, the pane goes to DockedTop. The application at this point has a variety of the panes already docked, and possibly floating.

This used to work. We're on 8.1. Any ideas what we're doing wrong?

Many thanks in advance

Dave Dawkins