ListView with Dynamic ContextMenu
When we want to display a ContextMenu based on the ListViewItem(Row) that was clicked, we have to handle ContextMenuOpening event and add our menuitems in that event. Attached sample shows how to do this.(change .doc to .zip)
Categories: WPF
ContextMenu, ListView, WPF
Hi, this help me a lot,
but it throws exception which can be overcame by using
<!–
–>
Thanks a lot
Petr
I can’t open the word document explaining how to do this.
Hi,
Save it as a zip file and you can find the sample