Using element-to-element binding in Silverlight 3?

I really don't see the need to bind item to item in Silverlight 3 when using MVVM. Wouldn't any property directly affect another proper reason for that property to be untested?

It makes sense to me to do a two way binding to an explicit property defined in the ViewModel.

0


a source to share


1 answer


I agree that using MVVM strongly deflects the usefulness of element-to-element binding.

That said, if all you are doing is binding two elements using the ViewModel property ... what can you check? You can check that setting a property in the ViewModel dispatches a PropertyChanged event ... but that's about it. Only when something else cares about this value is it useful to check for a property like this.



In simple cases, I see that binding element2element is more efficient and less code.

0


a source







All Articles