I am docking a control to the left but do not know how to set the width of the pane. I have tried changing the width of that control via VS designer but DockManager seems to decide the width by itself.
ultraDockManager1.DockControls(myControl, DockedLocation.DockedLeft, ChildPaneStyle.TabGroup);
Hi,
Try following code for your purpose. I beleive this sample will solve your problem.
this
.ultraDockManager1.DockAreas["Key"].Panes[0].DockAreaPane.Size = new Size(width, height);
Thanks for taking the time to help
In my case the width is a little bit less than I need but the height is already determined by the that of the container (the pane is docked left). So with Size I would have to hardcode the height?
BTW , would you know how I get the DockArea instance from the DockAreas collection using the Control that has been docked?
Thanks!