I have a tab control which I docked in my windows form via the ultraDockManager. When I drag the window to undock it from the main form, is there a way I can maximize that undocked window to fill my entire second screen or is this simply not a feature of the dock manager? I do have maximize and minimize buttons visible in the upper right corner of the undocked window but I think those are for maximizing and minimizing within the panel itself, not to maximize the entire docked window. Any help would be very much appreciated.
Thanks!
Hello,
I am currently researching this for you. I am going to build a sample to demonstrate how you can do this. I will update you on my progress with the sample at the end of the day Monday.
Hello, You can add the following code to the AfterToggleDockState and AfterDockChange event handlers for the UltraDockManager:
if (e.Pane.DockedState == Infragistics.Win.UltraWinDock.DockedState.Floating) (e.Pane as DockableControlPane).Control.FindForm().WindowState = FormWindowState.Maximized;
Mike,
Thank you so much, this works great.
Is there a way to toggle the undocked pane between a maximized and minimized state or resize the undocked window all together by grabbing and dragging the edges?
Thanks,Michelle
Hi Michelle,
You can toggle between minimized and maximized by setting the WindowState property on the undocked window.
The undocked window can be resized normally by grabbing and dragging the edges. This should work out of the box -- are you experiencing any issues relateed to resizing the DockablePane?
Thanks Jose! Very much appreciated...
Hello Michelle,
I will be happy to help you out with this issue.
I have created case # CAS-83682-1TW7ZN for you to better assist you with this issue going forward. To access the case, simply log into your IG account and click on My Support Activity.
Please let me know if you have further questions in this matter utilizing the case created.
Hi Mike,
I know it's been a few months but I'm still not able to get my undocked pane to work properly and have nearly given up on attempting to minimize and maximize the undocked window. I'm at the point where I just want to remove the maximize and minimize icons in the upper right hand corner of the window. I've set the ShowMinimizeButton and ShowMaximizeButton properties to false and they disappear in the design environment but as soon as I run the application, they are both there but grayed out. So I've got two things going on now. I can't get the maximize and minimize to work yet I can't get rid of the button so we're not confusing our users. If you have any suggestions, I would very much appreciate your help.
Thanks,
Michelle
Michelle,
Is there anything further that I can do to help you?
The floating pane is just a normal window, so you won't be able to resize it that way when it's maximized. Panes don't normally expose any way to control maximize/minimize, so you'll need to handle that manually. One way you can work around that is to set the size of the window so that it takes up the whole screen. It won't be maximized, so you'll be able to resize it, move it, etc.
The WindowState property comes from the form rather than the UltraDockManager, and all forms have this property. You wouldn't be able to set it at design time, since the form for the floating pane doesn't exist until the pane actually becomes floating at runtime. Once that happens, the pane has its own form separate from the main form for your application. That's why we needed to use the FindForm() method to get at it.