CommandParameters in ContextMenu in WPF

后端 未结 4 1039
半阙折子戏
半阙折子戏 2020-12-01 13:19

I have a scenario where I have a WPF TreeView control that has an HierarchicalDataTemplate for its items. Now inside the HierarchicalDataTemplate,

4条回答
  •  误落风尘
    2020-12-01 13:34

    
    
    

    ContextMenu.PlacementTarget, is Label, where the menuitem is hosted. From Lavel, its parent Treeview is accessable.

提交回复
热议问题