Friday, 10 July 2009

Silverlight 3 Element to Element Binding




We don't have to create tons of events for updating values, texts to different controls.

The code below does it all. No additional coding inside cs file.
{Binding Value, Mode=OneWay, ElementName="MyControlxName"}

It's like the old binding style except that we have ElementName to tell the compiler that we want to bind the property to the element MyControlxName's Value property.


No comments: