1. Code
  2. Silverlight

Databinding with Silverlight

Scroll to top
Read Time: 1 min
This post is part of a series called Silverlight for Beginners.
Styling Silverlight UI Elements
Introduction to Control Templating in Silverlight

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.

What's Covered?

Here's a quick look at some of the subjects discussed in this screencast:

  • The Visual Studio Data Source window
  • Binding properties to data
  • DataContexts
  • Data changes and notification
  • Setting binding properties
  • Data collections
  • Moving to Expression Blend

View Screencast

Useful Links

Mike Taulty Microsoft (UK):

Did you find this post useful?
Want a weekly email summary?
Subscribe below and we’ll send you a weekly email summary of all new Code tutorials. Never miss out on learning about the next big thing.
Looking for something to help kick start your next project?
Envato Market has a range of items for sale to help get you started.