How do I set CommandParameter in XAML?

后端 未结 2 352
慢半拍i
慢半拍i 2020-12-18 14:48

I have the following XAML:

   
       
            


        
2条回答
  •  太阳男子
    2020-12-18 15:27

    Try using this:

    
    

    ContextMenus are not part of the WPF's normal VisualTree, so you have to bind using the PlacementTarget to get the object the ContextMenu is attached to

提交回复
热议问题