Hi Support Team,
I am having difficulties using WinForms UI components in combination with System.Windows.Forms.TableLayoutPanel. I wanted to follow the suggestions of using this panel to create HDPI aware UIs.
Component nesting is like this:
- RadForm
- RadLayoutControl
- LayoutControlTabbedGroup
- LayoutControlGroupItem1
- LayoutControlGroupItem2
- LayoutControlItem1
- TableLayoutPanel1
- LayoutControlItem1
- LayoutControlItem2
- TableLayoutPanel2
- LayoutControlItem3
- RadButton1
- LayoutControlTabbedGroup
- RadLayoutControl
When I am in the default "CSharp Form Editor" I'm not able to place the UI components into the TableLayoutPanel. The designer always tries to create a new LayoutControlItem in the RadLayoutControl. E.g. when trying to add a RadButton into the TableLayoutPanel2, it creates the RadButton1 right next to the TableLayoutPanel2 (or below/above;) into a new LayoutControlItem3, but not IN the desired column/row of the TableLayoutPanel2.
I tried a workaround by creating a standard Form and placing a TableLayoutPanel into it. Then adding all the UI components I want in it and afterwards copy+paste it into the LayoutControlGroupItem of another RadForm. However this approach seems to not attach it to any LayoutControlItem by using the Designer. It just gets added to the RadLayoutControl. I then tried to manually write the Designer Code by looking at how the Example code is generated, but that also is not reliable and I'm having an issue with getting the TableLayoutPanel docked to the "manually created" LayoutControlItem.
My question:
- How can I get this to work or is this combination not intended/supported?
Environment
- Visual Studio 2022 v17.12.4
- .NET Framework 4.8
- Telerik WinForms UI 2024.4.1113.48
Added my example project and a screenshot of the designer while dragging a new RadLabel (or similar) onto the TableLayoutPanel.
Edit1: Added another screenshot of intended behavior.
Thanks and regards,
Kai