Skip to content

ViewModelExtensions

Patrick Schimmel edited this page May 24, 2021 · 2 revisions

ViewModelExtensions

Namespace: ES.Tools.Core.MVVM (ES.Tools.Core)

Helpful extension methods that can be use in the context of ViewModels.

Methods

CollectionView GetView(this IEnumerable source)

Returns the default collection view of a list object

AddSorting(this IEnumerable source, params SortDescription[] sortDescriptions)

Adds a SortDescription to the default view of a collection.

SetSorting(this IEnumerable source, params SortDescription[] sortDescriptions)

Sets a new SortDescription to the default view of a collection.

ClearSorting(this IEnumerable source)

Removes all SortDescriptions from the default view of a collection.

Remarks

See also ViewModel.

Clone this wiki locally