开发者

Silverlight 4.0: MultiDataTrigger

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜