Hello everyone,
I'm learning to use Telerik for winforms, but I have an issue with RadHostItem that hosts a Windows TableLayoutPanel that is generated at runtime and the RadHostItem is placed inside a RadDropDownButtonElement on a RibbonBar.
I'm using RadHostItem.MinSize for the host that contains the TableLayoutPanel but I've tried a lot of ways to size the host height but neither of them is working as desired.
In what units RadHostItem.MinSize is defined?
For example, I have this code:
Telerik.WinControls.RadHostItem radHost = new Telerik.WinControls.RadHostItem(panel);
int heightPerRow = panel.GetRowHeights()[0]; // Height of a row in pixels,
radHost.MinSize = new Size(panel.Width, heightPerRow * headerRow);
radDropDownButton.Items.Add(radHost);
But this host is very big for the panel and it distorts it.
I'll appreciate any help.
Thanks in advance,
Adriana