本文介绍了如何更改我的鼠标悬停按钮的背景是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个WPF应用程序用C#编写。
I have a WPF application written in C#.
我已经做了一个按钮。我改变了背景色。
I have made a button. I changed the background color.
我怎样才能改变偏蓝的颜色,当鼠标移动到我的按钮?而如何控制动画/更改时间?
How can I change the bluish color when mouse is over my button? And how to control animation/change time?
推荐答案
HTTP: //msdn.microsoft.com/en-us/magazine/cc163421.aspx
您将需要考虑为您的按钮创建一个风格。这将在XAML来完成,你会发现微软前pression混合真正简化了您的WPF项目的大多数方面的设计。
You will need to look into creating a 'style' for your button. This will be done in XAML, you will find Microsoft Expression Blend really simplifies the design of most aspects of your WPF projects.
这篇关于如何更改我的鼠标悬停按钮的背景是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!