Oztaco
Oztaco

Reputation: 3459

Applying styles to Menu items similar to ContextMenu?

I'm having a little trouble styling the context-menu-like control that drops down when you click on a MenuItem. I tried styling ContextMenu, but I guess they aren't the same control because it only affected the actual context menu. So I was wondering how I would access the list of MenuItems, like what TargetType it is or if I have to access it some other way. I also tried styling HeaderedContentControl, which didn't appear to change anything.

enter image description here

Upvotes: 1

Views: 3379

Answers (1)

Richard E
Richard E

Reputation: 4919

You will need to modify the MenuItem ControlTemplate. There is an example on MSDN that should serve as a good starting point.

MenuItem ControlTemplate Example

Upvotes: 1

Related Questions