In my test application I try to resize a pane by setting the panes Size property. Attached is my source code to illustrate my problem. What I am trying to do is to be able to shrink or grow the width of a panel(pane) as needed. I need this functionality. I am using 13.1 controls.
To resize I tried this when the user clicks a button it:
_leftPanelWidth += 100;
var myPane = ultraDockManager1.DockAreas[0].Panes[0];
myPane.Size = new Size(_leftPanelWidth, myPane.Size.Height);
But the panes stay in the same spot.
What am I doing wrong?
Hello.
Depending on where the control is docked, the Height/Width of the pane is based on the owning DockAreaPane. As such, you need to set the height/width on the owning DockArea which can be accessed via the DockAreas collection on the UltraDockManager, or the DockAreaPane property on the specific DockableControlPane.
Let me know if you have any further questions.
Chris
Hi,
I'm using the following code:
DockableControlPane controlPane = new DockableControlPane("statistics", "Area filtering and statistics", dockedControl);controlPane.FlyoutSize = new Size(200, 200);controlPane.Size = new Size(200, 200);controlPane.MaximumSize = new Size(200, 200);
DockAreaPane dockArea = new DockAreaPane(DockedLocation.DockedBottom);dockArea.Panes.Add(controlPane);dockArea.ChildPaneStyle = ChildPaneStyle.TabGroup;dockArea.Size = new Size(200, 200);dockArea.GroupSettings.TabSizing = Infragistics.Win.UltraWinTabs.TabSizing.AutoSize;dockArea.MaximumSize = new Size(200, 200);dockArea.Unpin();
DockManager.DockAreas.AddRange(new DockAreaPane[] { dockArea });
But for some reason the pane's width is the same as the container's. Does anybody have any suggestions for why this is happening?