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.
Hello,
is there a way to modify the behavior of a dockable control, so that the control can only be docked on the right and/or left side of its parent MDI form ?
Thanks in advance
ADAdministrator Syncfusion Team February 7, 2005 03:28 PM UTC
Hi Guillem,
There is a way to control docking behavior, the DockAllow event. The following code snippet from the user''s guide demonstrates this:
// DockingManager.DockAllow event handler
private void dockingManager1_DockAllow(object sender, Syncfusion.Windows.Forms.Tools.DockAllowEventArgs arg)
{
// Disallow all controls from being docked to the host Form''s left border
if((arg.TargetControl == this) && (arg.DockStyle == Syncfusion.Windows.Forms.Tools.DockingStyle.Left))
arg.Cancel = true;
}
Hope this helps.
Regards,
Gregory Austin
Syncfusion, Inc.
SHStephan HofmannApril 3, 2005 10:35 AM UTC
Hello,
the given solution before is not working if the docking manager property DockToFill is set to TRUE. Then, you will always get "Fill" as checking value which doesn''t make sense in this situation.
ADAdministrator Syncfusion Team April 4, 2005 04:58 PM UTC
Hi Stephan,
I''ve checked this in our latest version and didn''t notice the behavior you''ve described. I''d recommend upgrading when we release v3.2 later this week, as it fixes a number of issues with Docking.
Regards,
Gregory Austin
Syncfusion Inc.