Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CollectionView.Filter Property

Gets or sets a method used to determine if an item is suitable for inclusion in the view.

Namespace:  System.Windows.Data
Assembly:  PresentationFramework (in PresentationFramework.dll)

public virtual Predicate<Object> Filter { get; set; }

Property Value

Type: System.Predicate<Object>
A delegate that represents the method used to determine if an item is suitable for inclusion in the view.

Implements

ICollectionView.Filter

ExceptionCondition
NotSupportedException

The current implementation does not support filtering.

Simpler implementations do not support filtering and throw a NotSupportedException. Use the CanFilter property to test if filtering is supported before assigning this property with a non-null value.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft