WPF图片点击事件 [英] WPF Image Click Event
本文介绍了WPF图片点击事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我有一个要用作按钮的图像.也就是说,点击事件会在图片内的MouseUp事件上触发.目前正在MouseDown上触发.我怎样才能做到这一点?我不希望将带有图像的按钮用作其内容.
问候,
Jib
Hi all,
I have an image that I want to use as a button. i.e the click event fires on the MouseUp event within the image. It''s currently firing on MouseDown. How can I do this? I don''t wish to use a button with an image as it''s content.
Regards,
Jib
推荐答案
这听起来很有希望: http: //stackstackflow.com/questions/2646929/wpf-image-cilck-event [
This sounds promising: http://stackoverflow.com/questions/2646929/wpf-image-cilck-event[^].
Cheers!
这篇关于WPF图片点击事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文