Monday 15 February 2010

wpf - Applying styles to Menu items similar to ContextMenu? -


I have a problem styling context-menus-like controls, when you click on MenuItem . I tried Style ContextMenu , but I think that they are not the same control because it only affects the actual context menu, so I was wondering how I would get the list of menu items, such as < Code> TargetType or if I have to access it in some other way. I also tried styling HeaderedContentControl , which did not seem to change anything.

Enter image details here

< Div class = "post-text" itemprop = "text">

You MenuItem control template . An example on MSDN that can serve as a good starting point.



No comments:

Post a Comment