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

Styling the menu with rounded corners?

1 Answer 769 Views
Menu
This is a migrated thread and some comments may be shown as answers.
plusHR
Top achievements
Rank 1
plusHR asked on 14 Apr 2011, 10:43 AM
Is there a way to round off the corners of the radmenu. I edited the template in expression blend and changed the corner radius however the border around the menu has not changed?

Thanks
Paul

1 Answer, 1 is accepted

Sort by
0
Dani
Telerik team
answered on 15 Apr 2011, 08:15 AM
Hello Paul,

If you modify the Border around the ItemsPresenter of RadMenu and add a CornerRadius, you can get the effect similar to the attached screenshot. To round off the corners, generate the RadMenu template in Blend and try using this sample:

<Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type telerik:RadMenu}">
                        <Border BorderBrush="{TemplateBinding BorderBrush}" 
                        BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" 
                        Padding="{TemplateBinding Padding}" CornerRadius="3">
                            <ItemsPresenter/>
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>

I hope this helps.

Greetings,
Dani
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Menu
Asked by
plusHR
Top achievements
Rank 1
Answers by
Dani
Telerik team
Share this question
or