Overiding context menu default style except for textbox contextmenu
-
All custom context menus are styled using a common control template in the application resource dictionary which overides the default style. This in turn affects the textbox contextmenu and gives a distorted (cut, copy, paste) menu options. Is there a way to do except for the contextmenu style of textbox?
- Regards -
J O N
A good thing is a bad thing if it keeps you from the best thing. - Dr. Adrian Rogers
-
All custom context menus are styled using a common control template in the application resource dictionary which overides the default style. This in turn affects the textbox contextmenu and gives a distorted (cut, copy, paste) menu options. Is there a way to do except for the contextmenu style of textbox?
- Regards -
J O N
A good thing is a bad thing if it keeps you from the best thing. - Dr. Adrian Rogers
If you give a ControlTemplate a key as you have above, its not applied to anything unless you specifically tell it to use that template. If it doesn't have an x:Key, its applied to everything.