J C*_*per 2 wpf
仅当单击鼠标时鼠标未在图像上方时,才会触发按钮命令.我错过了什么?
<Button Cursor="Hand" Command="{Binding Path=SomeCommand}"> <Image Source="image.png" /> </Button>
Run*_*sen 5
我认为你的图像吞噬了你的鼠标点击.
尝试在图片中添加IsHitTestVisible ="False".
归档时间:
15 年 前
查看次数:
2051 次
最近记录: