i have a listbox with a datatemplate that looks like this:
spackpanel
textbox1
textbox2
/stackpanel
how i want to add a context menu, so i modified it like:
spackpanel
contextMenu
contextMenuItem
/contextMenu
textbox1
textbox2
/stackpanel
i gave no additional attributes like heigh etc. only the text/content and header attributes.
when i start it, i see the textboxe’s but the contextMenu is not accessable when i hold it. does i make it right? where to find good examples with stackpanel and contextMenu?
Without seeing your code/xaml it’s hard to say. But, the following works for me:
Styles added to increase hit target size