I cannot figure out how to set the size or position (in pixels, not snapped to the top, left, bottom, or right) of a floating DockPanel which was created at runtime.
Below is how I'm instantiating the DockPanel (the DeckWorkspace is a valid UserControl... part of CAB, "docked" and "auto-hide" are bools). I have tried setting Size, but that only appears to control the private "dockSize" member, and obviously I don't have access to the private "floatSize" member.
Below is how I'm instantiating the DockPanel (the DeckWorkspace is a valid UserControl... part of CAB, "docked" and "auto-hide" are bools). I have tried setting Size, but that only appears to control the private "dockSize" member, and obviously I don't have access to the private "floatSize" member.
DockPanel panel = new DockPanel();
DeckWorkspace workspace = new DeckWorkspace();
workspace.Name = workspaceName;
workspace.Dock = DockStyle.Fill;
panel.Controls.Add(workspace);
dockingManager1.PrimarySite.DockingManager.SetDock(panel, DockPosition.Default);
panel.DockState = (docked) ? DockState.Docked : DockState.Floating;
panel.DockState = (autoHide) ? DockState.Docked & DockState.AutoHide : panel.DockState;