Click or drag to resize

ObservableExtensionsObservableWhereT Method

Returns an observable collection of objects of type T that contains all items of the source collection that pass the filter. See ObservableFilteredCollectionT for details.

Namespace: TomsToolbox.ObservableCollections
Assembly: TomsToolbox.ObservableCollections (in TomsToolbox.ObservableCollections.dll) Version: 2.21.0+44d18b541fc9419ec3c549350a832394661b2a4d
XMLNS for XAML: Not mapped to an xmlns.
Syntax
public static IObservableCollection<T> ObservableWhere<T>(
	this IList<T> source,
	Func<T, bool> predicate,
	params string[] liveTrackingProperties
)

Parameters

source  IListT
The source collection.
predicate  FuncT, Boolean
The predicate used to filter.
liveTrackingProperties  String
The live tracking properties. Whenever one of these properties in any item changes, the filter is reevaluated for the item.

Type Parameters

T
The type of the target elements.

Return Value

IObservableCollectionT
The observable collection of objects of type T that contains the filtered items of the source collection.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IListT. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
See ObservableFilteredCollectionT for usage details.
See Also