Is this possible to put <telerik:RadContextMenu.ContextMenu> in <ControlTemplate.Resources> and trigger Opened event of the context menu, if yes then please send the code.
1 Answer, 1 is accepted
answered on 09 Dec 2010, 09:40 AM
Hello Amar Deep,
In WPF it is possible to specify RadContextMenu is Resources and then attach it to some element.
This is possible only if you set x:Shared="False" on the RadContextMenu. This will cause new instance to be created every time you reference this resource (limitation of RadContextMenu is that it cannot be attached on multiple elements but x:Shared helps in this case).