This is probably a newbie question :)
I have some styles and content templates for a contextmenu defined in a window (alternatively I could move them to app.xml)
The contextmenu is created programmatically so I need to assigned the style and content template to it programmatically (which is set to targettype contextmenu and menuitem). How do I do that?
If i give them specific keys I could use findresource and assign the template property etc, but there's lot's of bindings in the templates that get screwed up when I do that :/