hikizume
hikizume

Reputation: 528

Set the MenuItem BackGround color (The right way)

Whenever I try to change the background color to a menu adding the following code to the app.xml

    <Style TargetType="MenuItem">
        <Setter Property="Background" Value="#FF9B9B9B" />
    </Style>

I get this lighter shade of gray around the menu, which color isn't set by the background property:

enter image description here

I know there are similar questions around, but the answers I've found haven't helped me.

Upvotes: 1

Views: 1358

Answers (1)

brunnerh
brunnerh

Reputation: 185290

That sort of thing is coded into the various ControlTemplates for MenuItems. You will probably have to create your own. (You could copy the defaults and edit them to your liking though)

Upvotes: 1

Related Questions