Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Menu > RadMenu included in Dropdown button added on ToolBar

Not answered RadMenu included in Dropdown button added on ToolBar

Feed from this thread
  • Tony avatar

    Posted on Nov 20, 2011 (permalink)

    There are several things needed for help while using RadMenu in Toolbar control:
    1. First of all, how to remove the border between the icon and header as shown on the attached file?
    2. Under the situation of puting the menu with same submenu items included on the Dropdown button as dropdowncontent, and added to Toolbar, the problem is that the IsEnabled property of menuitem only works at the first time, but once the related data changed won't reflect to menuitems.   (The funcitonability of Command binded to the menuitem works as expected base on "CanExecut..." delegated command, but the UI of "IsEnabled" won't work. This means you can still clike the menuitem which return the "False" value from "CanExecut..." command.)  Any suggestion on this?

    Regards,
    Attached files

    Reply

  • Valeri Hristov Valeri Hristov admin's avatar

    Posted on Nov 23, 2011 (permalink)

    Hi Tony,

    Straight to the questions:
    1) You should customize the control templates (they are four) of the RadMenuItem and remove the corresponding backgrounds and borders. You could remove the icon area by setting IconColumnWidth=0 on RadContextMenu, but this will hide both the background and the icons, so I guess this is not what you want. You could check the following help article for more information:
    http://www.telerik.com/help/silverlight/radmenu-styles-and-templates-overview.html

    2) Is this problem happening with the latest version of RadMenu (2011.3.1116)? This behavior depends on the commands that you use - the RadMenuItem keeps weak references to the commands' events and if the command implementation is also with a weak event it is possible the GC to collect the event handlers several seconds after the application is loaded. Probably a simple example project demonstrating the behavior will be the most helpful thing, but I suppose that more information will be enough - version of RadControls for WPF, delegate command implementation - Telerik, PRISM, MVVM light, or other MVVM framework, or own implementation?

    Greetings,
    Valeri Hristov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Menu > RadMenu included in Dropdown button added on ToolBar