Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1215
Using ControlTemplate with xamContextMenu
posted

I need to change how the context menu displays (some "fancy" border, background and other decoration) and want to use the ControlTemplate for this. Currently my xaml looks like this:

<ig:XamContextMenu.Template>

<ControlTemplate>

<Grid>

<ContentPresenter />

</Grid>

</ControlTemplate>

</ig:XamContextMenu.Template>

Nothing fancy yet, I just want to get started with displaying the menu items first. As far as I know the ContentPresenter tag should take care of that. However I get nothing. If I put some other stuff inside the Grid tags, like a TextBlock, it shows up when the menu is called upon.

What basic stuff am I missing in order to get the menu items displayed inside the ContentPresenter?

Thanks in advance.

 

Parents
No Data
Reply Children