background still as rectangle even my rad button is rounded

2 posts, 0 answers
  1. ofer
    ofer avatar
    3 posts
    Member since:
    Jul 2018

    Posted 04 Aug 2018 Link to this post

    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

  2. Dimitar
    Dimitar avatar
    2951 posts

    Posted 06 Aug 2018 Link to this post

    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.

    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.
Back to Top