Click here to Skip to main content
12,244,489 members (45,731 online)
Click here to Skip to main content

Stats

47.2K views
1.4K downloads
18 bookmarked
Posted

Sorting an Observable Collection using the View Model from the MVVM Pattern

, 7 Apr 2011 CPOL
Shows how to allow sorting of controls (e.g. a Listview) that are bound to an ObservableCollection using the MVVM (model, view, view model) pattern and the sorting takes place in the view model.
ObservableCollectionSortingExample
Local.testsettings
ObservableCollectionSortingExample.Model
ObservableCollectionSortingExample.Model.csproj.vs10x
Properties
ObservableCollectionSortingExample.suo
ObservableCollectionSortingExample.Test
ObservableCollectionSortingExample.Test.csproj.vs10x
Properties
ObservableCollectionSortingExample.vsmdi
ObservableCollectionSortingExample
ObservableCollectionSortingExample.csproj.vs10x
Properties
TestResults
michael_MICHAEL-LAPTOP 2011-03-13 18_53_15.trx
michael_MICHAEL-LAPTOP 2011-03-13 18_53_44.trx
michael_MICHAEL-LAPTOP 2011-03-13 18_54_33.trx
michael_MICHAEL-LAPTOP 2011-03-13 18_56_10.trx
michael_MICHAEL-LAPTOP 2011-03-13 18_56_49.trx
michael_MICHAEL-LAPTOP 2011-03-13 18_59_24.trx
michael_MICHAEL-LAPTOP 2011-03-13 19_00_20.trx
michael_MICHAEL-LAPTOP 2011-03-13 19_03_13.trx
michael_MICHAEL-LAPTOP 2011-03-13 19_16_27.trx
michael_MICHAEL-LAPTOP 2011-03-13 19_16_56.trx
michael_MICHAEL-LAPTOP 2011-03-13 19_18_03.trx
michael_MICHAEL-LAPTOP 2011-03-13 19_20_32.trx
michael_MICHAEL-LAPTOP 2011-03-13 19_20_32
In
MICHAEL-LAPTOP
Out
AgentRestart.dat
michael_MICHAEL-LAPTOP 2011-03-13 19_22_58.trx
michael_MICHAEL-LAPTOP 2011-03-13 19_32_17.trx
michael_MICHAEL-LAPTOP 2011-03-13 19_33_10.trx
michael_MICHAEL-LAPTOP 2011-03-13 19_34_31.trx
michael_MICHAEL-LAPTOP 2011-03-13 19_35_27.trx
michael_MICHAEL-LAPTOP 2011-03-13 19_37_22.trx
michael_MICHAEL-LAPTOP 2011-03-13 19_39_21.trx
michael_MICHAEL-LAPTOP 2011-03-13 19_39_44.trx
michael_MICHAEL-LAPTOP 2011-03-13 19_40_09.trx
michael_MICHAEL-LAPTOP 2011-03-13 19_46_15.trx
michael_MICHAEL-LAPTOP 2011-03-13 19_47_03.trx
michael_MICHAEL-LAPTOP 2011-03-13 19_49_01.trx
michael_MICHAEL-LAPTOP 2011-03-14 00_14_01.trx
TraceAndTestImpact.testsettings

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Michael Bookatz
Software Developer (Senior)
United Kingdom United Kingdom
Software Engineer who started coding when I was 5. Core focus is to meet clients real business needs through initial consultation, followed by a communicative and collaborative approach. Delivers applications using C# .net and MS SQL Server. Comfortable working independently, in a team, or mentoring to meets deadlines irrelevant of pressure.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.160426.1 | Last Updated 7 Apr 2011
Article Copyright 2011 by Michael Bookatz
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid