Context Menu trigger not firing on TreeViewItem

后端 未结 1 1323
星月不相逢
星月不相逢 2021-01-26 09:29

In my WPF application, I have added a TreeView control binding class data to TreeViewItems. I have added a context menu to the treeviewitems. The Handler of the contextMenu is n

相关标签:
1条回答
  • 2021-01-26 10:04

    Basically I am missing important code here about where is your class with the List, where is the command you bind to ? Furthermore you are using CommandBinding. This is not like a normal event handler. These are two things in WPF. I think you are missing the Property for your command in your DataContext - class.

    0 讨论(0)
提交回复
热议问题