Last Updated: 24 Aug 2018 13:05 by ADMIN
Created on: 21 Aug 2018 15:12
Category: Panel, CollapsiblePanel, Label, GroupBox
Type: Bug Report
RadCollapsiblePanel.ControlsContainer's BorderPrimitive doesn't retain changes to the border colour.
Create a new TelerikWinForms project.
Add a collapsible panel.
Set the border colour via the "Edit UI Elements" button in the task menu, under BorderPrimitive.ForeColor.
The border will appear to change in design view, but will not change at runtime, with the appropriate line not being added to the form .Designer.cs file at all.
This was tested with the Windows 8 theme applied.
((Telerik.WinControls.Primitives.BorderPrimitive)(this.radCollapsiblePanel1.ControlsContainer.GetChildAt(0).GetChildAt(1))).ForeColor = Color.White;
1 comment
Posted on: 24 Aug 2018 13:05

The "Edit UI Elements" dialog provides means for accessing particular elements which at the end will build the visual tree of the control. Due to the specifics of Visual Studio and the WinForms designer there is no guarantee that all settings applied to the inner elements will be serialized in the designer file. The recommended approach is to perform such modifications at run-time similarly to the workaround you are already using.