多条件事件触发 [英] Multi condition event trigger
本文介绍了多条件事件触发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在WPF中,我们有-
- 多条件属性触发器
- 多条件数据触发器
- Multi condition Property Trigger
- Multi condition Data Trigger
Hi,
In WPF, we have -
但是似乎没有多条件事件触发器".
有人可以建议我如何实现多条件事件触发器吗?
我正在尝试实现一个简单的验证,例如-
如果单击了一个按钮(事件触发器),并且检查了文本框为空,并且选中了一个单选按钮(多个条件),那么动画就开始了(触发动作).
谢谢,
Mahesh.
However there doesn't appears to have a "multi condition Event trigger".
Can someone suggest how can I implement a multi condition event trigger?
I am trying to implement a simple validation like -
if a button is clicked (event trigger), and textbox is empty alongwith a radiobutton is checked (multiple conditions), then an animation starts(trigger action).
Thanks,
Mahesh.
推荐答案
希望对您有所帮助:)
http://blogsprajeesh.blogspot.com/2009/03/wpf-controlling-styles-with.html
http://en.csharp-online.net/WPF_Styles_and_Control_Templates%E2%80%94Multi- Condition_Property_Trigger
I hope this will help you :)
http://blogsprajeesh.blogspot.com/2009/03/wpf-controlling-styles-with.html
http://en.csharp-online.net/WPF_Styles_and_Control_Templates%E2%80%94Multi-Condition_Property_Trigger
这篇关于多条件事件触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文