Change style of default components

3 posts, 0 answers
  1. Marcel Pietsen
    Marcel Pietsen avatar
    16 posts
    Member since:
    Apr 2010

    Posted 05 Jun 2010 Link to this post

    How can I change the mouseover of the contextmenu when I add a checkbox? I can easily change radmenuitems but haven't found a way yet to change the checkbox' team. I did check in the contextmenu itself for teams but nothing exists there whatsoever about mouseover themes.
  2. Marcel Pietsen
    Marcel Pietsen avatar
    16 posts
    Member since:
    Apr 2010

    Posted 06 Jun 2010 Link to this post

    Forgot to mention that adding a checkbox to the header of a radmenuitem works but Im looking into changing style without radmenuitem
  3. Pana
    Pana avatar
    748 posts

    Posted 10 Jun 2010 Link to this post

    Hi Marcel Pietsen,

    If you want to edit the MouseOver you will have to edit the ButtonChrome inside the menu. We use it to render all the button states within our controls. You can find it in the the RadMenu, RadComboBox, most of the RadButtons etc. The RadMenuItems set the IsHighlighted property of their ButtonChrome so if you edit the proper triggers within the ButtonChrome you will affect the MouseOver.

    As for the checkbox I am not sure what exactly you want to achieve. In the ControlTemplate of the RadMenuItem there is a visual element that represents the check mark and its visibility is changed when the IsChecked property changes. Eventualy you can replace the visual with a checkbox and TemplateBind the IsChecked of the CheckBox to the IsChecked of the RadMenu

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