Databinding is key, key, key in Silverlight. Additionally, it’s key. No, really. The basic idea is that we don’t want to write code that transfers data between the objects representing data in your program and the UI controls presenting that data to the user. If you’re not using Databinding, keeping UI controls and the data separate in your Silverlight applications, then the chances are you’re doing it wrong ;-)
Silverlight has simple but powerful mechanisms that allow a great degree of separation between the UI controls and the data that is bound to them.
Here we take a look at the basics of data binding in Silverlight, how we set up bindings, how bindings are resolved via DataContexts and how tools like Visual Studio and Expression Blend represent data binding.
Here's a quick look at some of the subjects discussed in this screencast:
- The Visual Studio Data Source window
- Binding properties to data
- Data changes and notification
- Setting binding properties
- Data collections
- Moving to Expression Blend