WPF Context menu on left click

后端 未结 8 488
情深已故
情深已故 2020-12-01 10:39

I have a WPF application..In which I have an Image control in Xaml file.

On right click of this image I have a context menu.

I would like to have same to be

8条回答
  •  自闭症患者
    2020-12-01 11:04

    If you want to do this just in Xaml without using code-behind you can use Expression Blend's triggers support:

    ...
    xmlns:i="schemas.microsoft.com/expression/2010/interactivity"
    ...
    
    
    

提交回复
热议问题