How to set CommandTarget for MenuItem inside a ContextMenu?

前端 未结 2 1411
情歌与酒
情歌与酒 2020-12-28 09:25

(This question is related to another one, but different enough that I think it warrants placement here.)

Here\'s a (heavily snipped) Window:

<         


        
2条回答
  •  清歌不尽
    2020-12-28 10:06

    Similar solution I found was using the Tag property of the parent to grab the datacontext:

    
        
            
                
            
        
    
        
    
    
    

提交回复
热议问题