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

Change style of default components

2 Answers 44 Views
ContextMenu
This is a migrated thread and some comments may be shown as answers.
Missing User
Missing User asked on 05 Jun 2010, 08:19 PM
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 Answers, 1 is accepted

Sort by
0
Missing User
answered on 06 Jun 2010, 10:09 AM
Forgot to mention that adding a checkbox to the header of a radmenuitem works but Im looking into changing style without radmenuitem
0
Pana
Telerik team
answered on 10 Jun 2010, 08:19 AM
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

Greetings,
Panayot
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
ContextMenu
Asked by
Missing User
Answers by
Missing User
Pana
Telerik team
Share this question
or