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

Remove Rounded Edge on RibbonBarForm with MetroTheme

1 Answer 101 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Bangon
Top achievements
Rank 1
Bangon asked on 18 Nov 2012, 08:22 AM
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?

1 Answer, 1 is accepted

Sort by
0
Accepted
Nikolay
Telerik team
answered on 19 Nov 2012, 03:57 PM
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.
Tags
RibbonBar
Asked by
Bangon
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or