The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I wonder if it possible to keep the minimum size of two windows when I dock one into the other.
For example, suppose window1 has a size of (100,200) and window2 has a size of (150,250). When I dock window1 into the bottom of window2 the resulting window would have a size of (150,450).
It seems that the default behavior is to keep the target window size (and split it in two) without taking in account the minimum sizes of the two windows.
GSGithanjali S Syncfusion Team December 9, 2009 06:44 AM UTC
Hi Jonathan,
You can set minimum size for a docked control using SetControlMinimumSize method in DockingManager's NewDockStateEndLoad event handler.
Here is the code snippet:
[C#]
void dockingManager1_NewDockStateEndLoad(object sender, EventArgs e) { this.dockingManager1.DockControl(userCtrl1, this, DockingStyle.Left, 50); //where userCtrl1 and userCtrl2 are usercontrols this.dockingManager1.DockControl(userCtrl2, this, DockingStyle.Left, 50);
this.dockingManager1.SetControlMinimumSize(userCtrl1, new Size(100, 100)); this.dockingManager1.SetControlMinimumSize(userCtrl2, new Size(100, 100)); }