Mouseover color

Dec 16, 2010 at 9:05 AM

Hi, first all i'd like to congratutate you for this amazing control...

my question is how can i change the color of the menu item when mouse is over...


Thank you

Mar 7, 2011 at 2:47 AM
Edited Mar 7, 2011 at 2:49 AM

You can do this by customizing the existing Control Template for the ItemsControl containing your menu items. Assuming you are using a ListBox for this purpose then the easy way to do this is to fire up Expression Blend, right click a ListBoxItem, go to Edit Control Parts (Template) and select Edit a Copy... then customize the Fill color of the fillColor and fillColor2 rectangles as required.

For more information please check out those tutorials on this topic: