I just want to add ContextMenu for several objects that I create dynamically, but The only way I found is to create ContextMenu in runtime like this:
ContextMen
The following code works for me, InsertQuery/DeleteQuery are two ICommand methods defined in ViewModel.