Change "menuHighlight" color for just one MenuBar

0
0

Hello everyone,

 

I need to change the style called “menuHighlight” for just one MenuBar.

In my case, I would like to set this style to be equal “inactiveBorder”. So, I tried to change it through the following command:

Application.Theme.Colors.menuHighlight = Application.Theme.GetColor(“inactiveBorder”)

Thus I changed the color of the entire application, but I need this change for just one MenuBar.

I tried some things using CSSStyle and CSSClass, but no success! Nothing has changed, lol.

 

Could you please guide me? Thank you in advance!

  • You must to post comments
0
0

Hi Sergio,

You can create a new Appearance Key and let it inherit from menubar.
Then change whatever you want for it and assign the Appearance Key to your MenuBar either through the property window
in Visual Studio or by code.

Best regards
Frank

 

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.