AdvancedCollectionView Class

Definition

A collection view implementation that supports filtering, sorting and incremental loading

public class AdvancedCollectionView : Microsoft.Toolkit.Uwp.UI.IAdvancedCollectionView, System.Collections.Generic.ICollection<object>, System.Collections.Generic.IComparer<object>, System.Collections.Generic.IEnumerable<object>, System.Collections.Generic.IList<object>, System.ComponentModel.INotifyPropertyChanged, Windows.Foundation.Collections.IObservableVector<object>, Windows.UI.Xaml.Data.ICollectionView, Windows.UI.Xaml.Data.ISupportIncrementalLoading
type AdvancedCollectionView = class
    interface IAdvancedCollectionView
    interface ICollectionView
    interface IObservableVector<obj>
    interface IList<obj>
    interface ICollection<obj>
    interface seq<obj>
    interface IEnumerable
    interface INotifyPropertyChanged
    interface ISupportIncrementalLoading
    interface IComparer<obj>
Public Class AdvancedCollectionView
Implements IAdvancedCollectionView, ICollection(Of Object), ICollectionView, IComparer(Of Object), IEnumerable(Of Object), IList(Of Object), INotifyPropertyChanged, IObservableVector(Of Object), ISupportIncrementalLoading
Inheritance
AdvancedCollectionView
Implements
IAdvancedCollectionView ICollection<Object> ICollection<T> IComparer<Object> IEnumerable<Object> IEnumerable<T> IList<Object> IEnumerable INotifyPropertyChanged Windows.Foundation.Collections.IIterable<Object> Windows.Foundation.Collections.IIterable<T> Windows.Foundation.Collections.IObservableVector<Object> Windows.Foundation.Collections.IVector<Object> Windows.Foundation.Collections.IVector<T> Windows.UI.Xaml.Data.ICollectionView Windows.UI.Xaml.Data.ISupportIncrementalLoading

Constructors

AdvancedCollectionView()

Initializes a new instance of the AdvancedCollectionView class.

AdvancedCollectionView(IList, Boolean)

Initializes a new instance of the AdvancedCollectionView class.

Properties

CanFilter

Gets a value indicating whether this CollectionView can filter its items

CanSort

Gets a value indicating whether this CollectionView can sort its items

CollectionGroups

Gets the groups in collection

Count
CurrentItem

Gets or sets the current item

CurrentPosition

Gets the position of current item

Filter

Gets or sets the predicate used to filter the visible items

HasMoreItems

Gets a value indicating whether the source has more items

IsCurrentAfterLast

Gets a value indicating whether the current item is after the last visible item

IsCurrentBeforeFirst

Gets a value indicating whether the current item is before the first visible item

IsReadOnly
Item[Int32]

Gets or sets the element at the specified index.

SortDescriptions

Gets SortDescriptions to sort the visible items

Source

Gets or sets the source

SourceCollection

Gets the source collection

Methods

Add(Object)
Clear()
ClearObservedFilterProperties()

Clears all properties items are re-filtered on

Contains(Object)
CopyTo(Object[], Int32)
DeferRefresh()

Stops refreshing until it is disposed

GetEnumerator()

Returns an enumerator that iterates through a collection.

IndexOf(Object)
Insert(Int32, Object)
LoadMoreItemsAsync(UInt32)

Load more items from the source

MoveCurrentTo(Object)

Move current index to item

MoveCurrentToFirst()

Move current item to first item

MoveCurrentToLast()

Move current item to last item

MoveCurrentToNext()

Move current item to next item

MoveCurrentToPosition(Int32)

Moves selected item to position

MoveCurrentToPrevious()

Move current item to previous item

ObserveFilterProperty(String)

Add a property to re-filter an item on when it is changed

OnPropertyChanged(String)

Property changed event invoker

Refresh()

Manually refresh the view

RefreshFilter()

Manually refreshes the filter on the view

RefreshSorting()

Manually refreshes the sorting on the view

Remove(Object)
RemoveAt(Int32)

Removes the IList<T> item at the specified index.

Events

CurrentChanged

Current item changed event handler

CurrentChanging

Current item changing event handler

PropertyChanged

Occurs when a property value changes.

VectorChanged

Occurs when the vector changes.

Explicit Interface Implementations

IComparer<Object>.Compare(Object, Object)

IComparer implementation

IEnumerable.GetEnumerator()

Applies to