ItemCollection.Filter Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

override Filter : Predicate<Object> with get, set

Property Value

Type: System.Predicate<Object>

A method used to determine if an item is suitable for inclusion in the view.

Exception Condition
NotSupportedException

Filtering is not supported.

Use the CanFilter property to test whether the current implementation supports filtering before assigning this property with a non-null value.

For a related example, see How to: Filter Data in a View.

.NET Framework
Available since 3.0
Return to top
Show: