Filter Event
Collapse the table of content
Expand the table of content

CollectionViewSource.Filter Event

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Provides filtering logic.

Namespace:  System.Windows.Data
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

public event FilterEventHandler Filter
<collectionViewSource Filter="eventHandler"/>

ExceptionCondition
InvalidOperationException

When adding a handler to this event, the View property value has a CanFilter property value of false.

Views can apply a filter to a collection. This means that although an item might exist in the collection, a particular view is intended to show only a certain subset of the full collection.

You can use this event to set an event handler to provide filtering logic.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2016 Microsoft