Skip to content

Conversation

@krmr
Copy link
Contributor

@krmr krmr commented Apr 7, 2022

With the current version I unfortunately could not easily change the background of a menu. Setting the background property on a MenuItem simply had no effect. Here the result of the included sample code where the foreground change is applied but not the background which results in white on white:
image

With the changes in this pull request the result changes to this:
image
A common use case would use the same color for both the main and child menu items but I used different colors for illustration.

@krmr
Copy link
Contributor Author

krmr commented Apr 8, 2022

I did not create a separate issue for this. Feel free to let me know if you want me to create one.

@Xaalek I guess this is related to your recent work on the menus.

Copy link
Member

@Keboo Keboo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! Thank you for the contribution!

@Keboo Keboo added this to the 4.5.0 milestone Apr 15, 2022
@Keboo Keboo added enhancement release notes Items are likely to be highlighted in the release notes. labels Apr 15, 2022
@Keboo Keboo merged commit 1317db4 into MaterialDesignInXAML:master Apr 15, 2022
@krmr krmr mentioned this pull request Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement release notes Items are likely to be highlighted in the release notes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants