I have a dockable pane control, docked to the left of hte screen.
I want to be able to click a button and dock it to the right (I do no want the user to be able to dock to where they want)
However the DockedLocation on the pane is read only and every property i have found so far that looks like it might do it is read only.
How can i change the DockAreaPane that a pane is docked too?
Thanks
If you have a reference to the dock pane you want to move, you can just call the Dock method on it and use the overload that takes a value from the DockedSide enumeration. Pass in DockedSide.Right to move the pane to the right side.
Hi
Yes i was able to solve this issue. Via the key given to the docked pane i was able to identify its parent and remove it from the parents Panes collection.
Then i can add it to the collection of a different DockAreaPane.
e.g
mainForm.ultraDockManager1.DockAreas[mainForm.ultraDockManager1.PaneFromKey(typeString).DockAreaPane.Key].Panes.Remove(typeString);
string getDockKey = GetDockKey(gen.DockPosition);
mainForm.ultraDockManager1.DockAreas[getDockKey].Panes.Add(mainForm.ultraDockManager1.PaneFromKey(typeString));
so when i create a dockable control i give it the key of the type (typestring), each of my dockable panes inherits from a base class which has a DockPosition property. This property matches the key of the dockarepanes in the collection.
Hope this helps buddy!!
Hi!
Did you receive an answer to your question ? I have the same problem. I tried to use RepositionToPane and some things, but nothing works.
Regards,
Benoit