Share via


PagedCollectionView.PassesFilter Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Returns a value that indicates whether the specified item in the underlying collection belongs to the view after filters are applied.

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

Syntax

'Declaration
Public Function PassesFilter ( _
    item As Object _
) As Boolean
public bool PassesFilter(
    Object item
)

Parameters

Return Value

Type: System.Boolean
true if the specified item belongs to the filtered view or if no filter is set on the collection view; otherwise, false.

Remarks

This method assumes that the specified item belongs to the underlying data collection. This method only compares the item to any filters set in the Filter property. If no filters are set, this method returns true. It is typically used during collection-changed notifications to determine whether the added or removed item requires processing.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

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