我如何使用WPF使椭圆控件具有闪烁效果 [英] How can i give an ellipse control a blinking effect using WPF

查看:348
本文介绍了我如何使用WPF使椭圆控件具有闪烁效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


当椭圆在用户控制下时,如何使椭圆闪烁效果.我需要将三个州椭圆化.开,关,闪烁.以上所有我需要在WPF中实现.

Hi,
How do i give an ellipse a blinking effect when the ellipse is in user control. I need to three states to ellipse viz. On , Off, Blink. All the above i need to implement in WPF

推荐答案

添加数据触发器,并将闪烁的动画绑定到该触发器.触发器将绑定到状态,因此当状态为Blink时,触发情节提要.
Add a data trigger, and bind a blinking animation to the trigger. The trigger would bind to the state, so when the state is Blink, trigger the storyboard.


这篇关于我如何使用WPF使椭圆控件具有闪烁效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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