如何根据条件使数据网格行闪烁。 [英] How to blink a datagrid row based on a condition.

查看:78
本文介绍了如何根据条件使数据网格行闪烁。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是wpf的新手。我有一个要求,其中网格应显示日期列,如果日期小于当前日期,我们需要闪烁行(例如,将其背景颜色从白色更改为红色,红色连续变为白色)。我用谷歌搜索了它,但我找到了适当的解决方案。请帮我一个完整的示例解决方案。



谢谢

I am new to wpf. I have a requirement, where a grid should be shown with a date column and if the date is less than current date, we need to blink the row(for example change its background colour from white to red and red to white continuously). I have googled it but I dint find any proper solution. Please help me with a complete example solution.

Thanks

推荐答案

这是针对单元格的 - https://sweav3r.wordpress.com/2007/09/15/blinking-wpf-datagrid -cells / [ ^ ] - 可以将相同的逻辑应用于行。
This is for cells - https://sweav3r.wordpress.com/2007/09/15/blinking-wpf-datagrid-cells/[^] - the same logic can be applied to rows.


这篇关于如何根据条件使数据网格行闪烁。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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