Remove Rounded Edge on RibbonBarForm with MetroTheme

2 posts, 1 answers
  1. Bangon
    Bangon avatar
    2 posts
    Member since:
    Nov 2012

    Posted 18 Nov 2012 Link to this post

    I am having trouble removing the Rounded edge of my form which has a RibbonBar. How do I remove the rounded edge? You can see this picture of my current form in TelerikMetroTheme with rounded edge. 

    My project is here in case needed for reference. Is there a quick way to do this?
  2. Answer
    Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 19 Nov 2012 Link to this post

    Hi Bangon,

    The easiest and quickest way to remove the rounding of the edges is to set the Shape property of the RootElement of the form to a RoundRectShape with Radius equal to 0. Here is an example which demonstrates the approach:

    public partial class RibbonForm : Telerik.WinControls.UI.RadRibbonForm
    {
        public RibbonForm()
        {
            InitializeComponent();
     
            this.RootElement.Shape = new Telerik.WinControls.RoundRectShape(0);
        }
    }

    We will consider removing the rounding by default for the Metro themes in a future release.
     
    I hope this helps. Greetings,
    Nikolay
    the Telerik team
    Q3’12 of RadControls for WinForms is available for download (see what's new). Get it today.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top