Homepage image
RSS Feed

Sample Download : http://code.msdn.microsoft.com/CSWP8CollectionViewSource-41c362bf

This sample demonstrates how to perform data binding with CollectionViewSource in Windows Phone 8. When bound to collection, users frequently have to display its subset by applying a filter. Filtering can be done by using several techniques.   The current MVVM sample for WP uses LINQ to filter the Collection of the ViewModel to use as the View's DataContext. This is not always the best approach. For example, if two or more views concurrently obtain data by using LINQ, the UI may not update in a timely manner when the data changes. You can solve this problem by using CollectionViewSource.

imageYou can find more code samples that demonstrate the most typical programming scenarios by using Microsoft All-In-One Code Framework Sample Browser or Sample Browser Visual Studio extension. They give you the flexibility to search samples, download samples on demand, manage the downloaded samples in a centralized place, and automatically be notified about sample updates. If it is the first time that you hear about Microsoft All-In-One Code Framework, please watch the introduction video on Microsoft Showcase, or read the introduction on our homepage http://1code.codeplex.com/.