Filter Property

ItemCollection.Filter Property

 

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)

public override Predicate<object> Filter { 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:
© 2016 Microsoft