开发者

What does the bindinglistener in mvvmlight do

开发者 https://www.devze.com 2023-03-17 00:45 出处:网络
I have been doin开发者_JAVA百科g some silverlight recently and was told that the bindinglistener in mvvmlight would be helpful.what does this class do?In Silverlight 3, you cannot derive from Dependen

I have been doin开发者_JAVA百科g some silverlight recently and was told that the bindinglistener in mvvmlight would be helpful.what does this class do?


In Silverlight 3, you cannot derive from DependencyObject, so you cannot add DependencyProperties to just any object. To work around that, you can use a BindingListener that will listen to property changes and then notify the bindings that something happened.

This limitation was lifted in Silverlight 4 so you don't need the binding listener if you upgrade to this version of Silverlight.

Makes sense? Cheers, Laurent

0

精彩评论

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