Jul 23 2010

Binding to an Indexed Property In Silverlight

Since Silverlight 2, the binding in Silverlight has been truly amazing to build applications with.  It’s ease and power has allowed developers to build advanced relationships with very little code.

Silverlight 4 has extended the binding capabilities by adding indexed property binding.  In previous versions, you could bind to an object’s properties like such:

<TextBox Text={Binding LastName}/>

With the addition of indexed property binding, you can bind to indexed objects as follows:

<TextBox Text={Binding [LastName]}/>

The added features open up some new potentials in binding to dynamic values.

Continue reading