可以刷资源用于自定义状态吗? [英] Can brush resources be used for customizing states?

查看:82
本文介绍了可以刷资源用于自定义状态吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



解决方案

嘿,

WPF和Silverlight支持连续动画颜色但刷。要实现效果,可以将Button的背景设置为LinearGradientBrush,并将渐变颜色设置为不同颜色资源值的动画。 Blend应该允许您将Color值设置为Color资源值的动画。

感谢!

Hi,


解决方案

Hey,

WPF and Silverlight support continuous animation for Color but Brush. What you can do to achieve your effect is have the Background of the Button be a LinearGradientBrush and animate the Color for the Gradient stops to the different Color Resource values. Blend should allow you to animate the Color values to a Color resource value.

Thanks!


这篇关于可以刷资源用于自定义状态吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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