按钮事件 [英] button event

查看:58
本文介绍了按钮事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi
我在wpf应用程序中彼此有三个按钮,我希望当我在按钮的共享空间上行走时,运行以下按钮的事件.
在正常模式下,它会运行顶部按钮.
tnx.

hi
i have three button on each other in wpf app,and i want that When i walk on the shared space of buttons run the event of below button.
in normal mode its run the event of top button.
tnx.

推荐答案

您不能这样做.您无法使覆盖的按钮接收到鼠标事件.它只是不会获得click事件,因为它被遮盖了.您将需要继续传递事件.
You can''t do that. You can''t make the button that''s covered recieve the mouse event. It''s just not going to get the click event because it''s obscured. You will need to pass the event on.


tnx Kubajzz.
我使用了控件模板,但是它可以用于shape.ellips或reqtangle.但是我需要将按钮的表面更改为图像.
tnx Kubajzz.
i used control templates but it do for shape.ellips or reqtangle.but i need to change button face to image.


如何创建非矩形的按钮?
例如,成为花朵图片!
How can i create a button that is not rectangular?
For example,be a Flower picture!


这篇关于按钮事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆