This is a migrated thread and some comments may be shown as answers.
background still as rectangle even my rad button is rounded
1 Answer 14 Views
This is a migrated thread and some comments may be shown as answers.
ofer
Top achievements
Rank 1
ofer asked on 04 Aug 2018, 06:49 PM

Hi guys,

 

i have created a rad button with rounded edges at sides.

i fill the background with some colour, but it seems the background act like i have a rectangle shape which it's but i have rounded the shapes.

i attached a photo for example.

 

thank you

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 06 Aug 2018, 12:06 PM
Hello Ofer,

You need to set the BackColor of the fill element only. Here is a complete example:
radButton1.ButtonElement.Shape = new RoundRectShape(10);
radButton1.ButtonElement.ButtonFillElement.GradientStyle = GradientStyles.Solid;
radButton1.ButtonElement.ButtonFillElement.BackColor = Color.Red;

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

Regards,
Dimitar
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Asked by
ofer
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or