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 need to add controls to form at runtime. I'm using DockingManager to arrange them. Controls are stored in List.
To add controls to form I tried to use following code:
foreach (Control control in controlList) { this.Controls.Add(control); dockingManager.DockControl( control, control.Parent, (DockingStyle)controlsDocking[control.Name], control.Width); }
The controlList is collection with Controls and dockingManager is instance of DockingManager. controlsDocking is Dictionary where key is name of Control and value DockingStyle property.
The line where I add control to dockingManager throws an ArgumentOutOfRangeException.
I tried to write those arguments in MessageBox to be sure what it returns and everything was fine, so I don't know where the problem is. I would be glad for any help so as I could add controls to docking manager at runtime.