I want to change the background of a MenuItem when the MenuItem is pressed.
EDIT:
Based on your updates take a look at how a default MenuItem
is constructed via XAML. This should get you where you need to go in providing styling for the varying parts of the MenuItem
. Note the use of the Role
property within the MenuItem
style dealing with the headers and items at both the top level and sub level.