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.
Unfortunately, activation email could not send to your email. Please try again.

Set control MaximumSize for docking window

Thread ID:

Created:

Updated:

Platform:

Replies:

129264 Mar 8,2017 04:44 AM Mar 15,2017 12:08 AM Windows Forms 3
loading
Tags: DockingManager
Michael Lohr
Asked On March 8, 2017 04:44 AM

Hello,

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,
Michael

Senthil Kumaran Rajan [Syncfusion]
Replied On March 9, 2017 06:15 AM

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; 
(or) 
//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. 
 
Regards, 
Senthil.

Michael Lohr
Replied On March 14, 2017 08:38 AM

Hi Senthil,

Thanks a lot for your solution.
This works perfectly.

Best regards,
Michael

Senthil Kumaran Rajan [Syncfusion]
Replied On March 15, 2017 12:08 AM

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. 
 
Regards, 
Senthil 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;