Hello support,
We are using UltraDockManager control, when we pin the dock window, is there any property to fix the width of the window, we have set the width of the floating window, but we want a property to fix the width of the window when it is pinned.
Can you please tell us the property from which we can fix the width of the docked (pinned) window. Please note that we are using the dockwindow in the user control.
I came across this exchange and I am having the same issue.
To clarify, I want to set the default size to be used on the toggle Pin/AutoHide.
I was able to hard code the sizes in the AfterPaneButtonClick event and that works if I do not try saving the layout to an XML file or loading the saved layout.
However, I need to be able to save the settings in the XML file.
So A - the default layout pin size should be the same size as the flyout size and then the user can change it.
and B - if the user changes it and saves their layout, the pin size should save.
Of note, if I pin the pane in the designer, it does pin at the flyout size.
Thank you.
Hello Vishal,
Did you try my suggestion?
Let me know if it works in your scenario or if you have further questions with this issue.
Regards,LyubaDeveloper Support EngineerInfragisticswww.infragistics.com/support
The properties that would help you achieve the required functionality are MaximumSize and MinimumSize of DockAreaPane. If you set them statically they will restrict also the width of the pane when it is floating. I am suggesting you to handle AfterDockCHange and AfterToggleDockState events and adjust the Maximum and Minimum width there. Your code should look something like:
private void ultraDockManager1_AfterToggleDockState(object sender, Infragistics.Win.UltraWinDock.PaneEventArgs e)
{
if (e.Pane.DockedState == Infragistics.Win.UltraWinDock.DockedState.Docked)
ultraDockManager1.ControlPanes[0].MaximumSize = new Size(100, 0);
ultraDockManager1.ControlPanes[0].Size = new Size(100, 0);
ultraDockManager1.ControlPanes[0].MinimumSize = new Size(100, 0);
}
else
ultraDockManager1.ControlPanes[0].MaximumSize = new Size(0, 0);
ultraDockManager1.ControlPanes[0].MinimumSize = new Size(0, 0);
private void ultraDockManager1_AfterDockChange(object sender, Infragistics.Win.UltraWinDock.PaneEventArgs e)
If your pane is docked initially you should restrict it inside Form_Load:
private void Form1_Load(object sender, EventArgs e)
I attached the sample project that I created. I used version 10.1.20101.2027.
Regards,
Lyuba Petrova
Developer Support Engineer
Infragistics
www.infragistics.com/support
The MaximumSize should do just that. It's possible this is a bug. I have forwarded this post to the Developer Support Manager and a DS engineer will be contacting you about this issue.
We have set the Flyout size to 470 we want that when the control is pinned the maximum size of the panel should be 470. We tried setting the maximum and the minmum size to 470, but it doesen't seem to work. The size of the panel goes beyond 470. We want to know the property wherein when we pin the control it should be opened in the specified width and not beyond that.