We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Set control MaximumSize for docking window


I have a user control with a fixed size which I want to use as a docking window.
I have found a method to set the minimumsize (DockingManager.SetControlMinimumSize) but not the opposite
to set the MaximumSize.

Is it possible to restrict  sizing of a docking window to a predefined max width?

Thanks for your help.

Best regards,

3 Replies

SK Senthil Kumaran Rajan Syncfusion Team March 9, 2017 11:15 AM UTC

Hi Michael, 
Thank you for contacting Syncfusion support. 
We understand that your requirement is to set the fixed size for the dockingManager controls. If so, the reported requirement can be achieved by using the “SetFreezeResize” function or “FreezeResizing” property.  
SetFreezeResize – used to restrict the size of the particular dock window. 
FreezeResizing – Used to restrict the size for the whole docked window. 
Please make use of the below code example. 
Code Example[C#]: 
//To freeze resizing of all the control 
this.dockingManager1.FreezeResizing = true; 
//To restrict the size of the user control. 
this.dockingManager1.SetFreezeResize(this.userControl11, true); 
//To restrict size of panel1 
this.dockingManager1.SetFreezeResize(this.panel1, true); 
We have prepared a sample for your reference and this can be downloaded from the below location. 
Could you check with the above solution and let us know whether it is helpful? If not please share some additional details about the reported requirement. It will be help us to check and provide you a solution at the earliest. 

ML Michael Lohr March 14, 2017 12:38 PM UTC

Hi Senthil,

Thanks a lot for your solution.
This works perfectly.

Best regards,

SK Senthil Kumaran Rajan Syncfusion Team March 15, 2017 04:08 AM UTC

Hi Michael, 
Thank you for your update. 
We are glad to know that, your requirement has been achieved. Please let us know if you need any further assistance, we will be happy to assist you. 

Live Chat Icon For mobile
Up arrow icon