This is a migrated thread and some comments may be shown as answers.

change color background layoutcontrolitem

2 Answers 120 Views
LayoutControl
This is a migrated thread and some comments may be shown as answers.
Oscar
Top achievements
Rank 1
Oscar asked on 06 Nov 2016, 06:01 PM
I do not know how to do the following. I have in a form, layoutcontrol, which have several layoutControlItem with textbox. You can change the background color of the layoutcontrolitem (I want to be different from the color of the form).
Thank you

2 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 07 Nov 2016, 10:25 AM
Hello Oscar,

Thank you for writing.

You should set the DrawFill property as well. For example:
layoutControlLabelItem2.DrawFill = true;
layoutControlLabelItem2.GradientStyle = Telerik.WinControls.GradientStyles.Solid;
layoutControlLabelItem2.BackColor = Color.Red;

I hope this will be useful. Let me know if you have additional questions.

Regards,
Dimitar
Telerik by Progress
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
0
Oscar
Top achievements
Rank 1
answered on 07 Nov 2016, 12:39 PM
Ok thanks
Tags
LayoutControl
Asked by
Oscar
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Oscar
Top achievements
Rank 1
Share this question
or