Sample Download : http://code.msdn.microsoft.com/How-to-filter-data-in-view-acbd98f2
Have you ever written an application, or been in the process of writing one, in which a large amount of data is being displayed on screen? At some point you realize that you want the users to be able to filter the data, but you are not sure of the best way to do it. For our sample application, we will use flight information as the sample data, and add a filter on the price of the flight. The methodology demonstrated in this sample can be applied to a larger application in which you have multiple filter criteria, and live data from a real time or static data source.
Build the sample in Visual Studio 2013, and then run it. The app looks like this:
Note: This sample was written based on Bret Bentzinger’s blog article: http://blogs.msdn.com/b/wsdevsol/archive/2013/11/14/filtering-data-in-your-view-model.aspx
You 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/.