Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

3. Advanced Data Binding > Building a change-aware collection type

Building a change-aware collection type

Applies to Silverlight 3, 4 and 5

We may not always have the option of binding to a collection that implements the INotifyCollectionChanged interface. For example, what if we have a service that returns IList<T>? Can't we use the automatic synchronization features that Silverlight's data binding engine offers us?

The good news is that we can. For that, we need to build a wrapper class around the IList<T>. This class will implement the necessary interface and will allow data binding to work in the manner in which we are accustomed.

Getting ready

The complete solution for this recipe can be found in the Chapter03/CustomCollections folder in the code bundle available on the Packt website.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint