This topic has not yet been rated - Rate this topic

CollectionViewSource.Filter Event

Provides filtering logic.

Namespace:  System.Windows.Data
Assembly:  System.Windows (in System.Windows.dll)
public event FilterEventHandler Filter
<collectionViewSource Filter="eventHandler"/>
Exception Condition
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.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ