开发者

Silverlight 4.0: MultiDataTrigger

开发者 https://www.devze.com 2022-12-23 02:27 出处:网络
Is the开发者_JS百科re a way just like multidatatrigger behavior of WPF also implemented in Silverlight 4.0?

Is the开发者_JS百科re a way just like multidatatrigger behavior of WPF also implemented in Silverlight 4.0?

OR

Another workaround which behaves like multidatatrigger?


Unfortunately, neither MultiBindings nor MultiValueConverters exist in Silverlight by default, although some very clever people have ported them over:

http://www.thejoyofcode.com/MultiBinding_for_Silverlight_3.aspx

As for MultiDataTriggers, there is no direct equivalent, although you could probably hack together a close equivalent using the above (i.e., set a multibinding, set the inputs to the multibinding as your trigger conditions, and use a MultiValueConverter to coalesce the result)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号