WPF - same style of contexmenu on different operating systems
Is there any way to force a ContextMenu
to look the same in every operation system (Windows XP Win7 Windows Vista)?
I installed my small application on windows xp and the ContextMenu
looks totaly different than I expected. It seems thatthe ContextMenu
gets its look from windows style or something like tha开发者_JAVA百科t. So is there any way to force this ContextMenu
to get the style which I want?
Maybe somebody has a good looking style for ContextMenu
(in XAML).
Yes, see for instance here. Basically you need to explicitly load the correct theme, which is in this case PresentationFramework.Aero.dll//themes/aero.normalcolor.xaml .
精彩评论