如何更改Windows手机中的按钮悬停颜色 [英] How to change the button hover color in Windows phone
问题描述
我想知道如何触发MouseEnter事件(手指放在按钮顶部)时,如何更改按钮背景颜色和边框颜色。如何在这些事件处理程序中以语法方式执行此操作?
Dileepa S. Rajapaksa
------------------------ ---------
见习开发人员
微软,斯里兰卡
---- ------------
Twitter:@dsrajapaksa
博客:http://www.dileepatech.net
i want to know how can i change the Button Background color and the boarder color when the MouseEnter event fired (finger on the top of button). How can i do this grammatically inside these event handlers?
Dileepa S. Rajapaksa
---------------------------------
Trainee Developer
Microsoft, Sri Lanka
----------------
Twitter : @dsrajapaksa
Blog : http://www.dileepatech.net
推荐答案
Blend是最简单的方式。
Blend is the easiest way.
您可以通过重新设置按钮控件来完成此操作。
You can do this by retemplating the button control.
- 右键单击按钮控件
- 编辑模板 - >创建副本
- 点击""状态""选项卡
- 您需要更改按下的视觉状态
干杯
这篇关于如何更改Windows手机中的按钮悬停颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!