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

RadContextMenu item size/spacing

1 Answer 249 Views
ContextMenu
This is a migrated thread and some comments may be shown as answers.
BJ
Top achievements
Rank 1
BJ asked on 02 Jul 2013, 04:06 PM
I am working with a RadContextMenu attached to a RadTreeView.  When I am using the default theme, the spacing between the menu items is similar to menus in most Windows applications.  When I switch to the Windows 7 theme (which I would like to use), the space between the menu items is much larger.  Is there a way to modify the context menu spacing to be similar to the control default when I am using the Windows 7 theme?  Do I have to create a custom theme?

.NET 4.0 WinForms application
Visual Studio 2010
Telerik 2013 Q2

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 04 Jul 2013, 12:30 PM
Hello BJ Myers,

Thank you for writing.

You do not need to create a new theme, you can edit the Windows7 theme to display similar context menu. If you do not know how to extract predefined themes consider the following link: Loading Predefined Themes.

Once you open the Windows7 theme in the VIsual Style Builder there are few easy steps to reduce ContextMenu items spacing:
  • Expand RadMenuDropDown and select RadMenuItem
  • Expand RadMenuItem in Elements window 
  • Change the RadMenuItem, margin padding or any other property to style the menu.
I have attached a picture to illustrate the steps I took.

I hope this helps. Should you have any other questions do not hesitate to ask.

Regards,
Mitko
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
ContextMenu
Asked by
BJ
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or