RadContextMenu item size/spacing

2 posts, 0 answers
  1. BJ
    BJ avatar
    3 posts
    Member since:
    Apr 2013

    Posted 02 Jul 2013 Link to this post

    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
  2. Dimitar
    Dimitar avatar
    2983 posts

    Posted 04 Jul 2013 Link to this post

    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.

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