How to change the background color of menu items?

Aug 6, 2010 at 11:45 PM

Folks,

Setting the background property doesn't seem to change the background color.

           <my:MenuBarItem MenuText="Test" Background="Yellow">

Is there a different way to change the background color?

Thank you in advance for your help.

Regards,

Peter

Sep 29, 2010 at 5:13 PM

Hi peter, did u solve this problem?

i tried to chance the backgorund and fails me too!

 

The key is change Fill="#FF8A8C8C" in generic.xaml in the source code, but i would like to get the dll =) and set the generic properties

 

regards,

Coordinator
Oct 28, 2010 at 8:36 PM

Yes, you need to change it in the generic.xaml. Please look at the sample solution for the templated menu. It should be in the download.

Dec 20, 2011 at 4:54 PM

can anyone tell me how to change the styles for this menu control?

I tried giving Background="Red" but of no use.

In which section of generic page doi need to change the fill property??

Jan 4, 2012 at 6:39 AM

I made some major design changes to this control and attached the updated source under the newest issue "Bug Fixes and Feature Updates" under issue tracker for this control Dec 15, 2011. I am hoping the author will update the control.

In any case, my post has the full source code of the modification and a new theme, with a screen capture to see. Maybe that will help you get the style changes.

The attached code has many more features added to the control so take a look.  Hope it helps.