Table of Contents

Method GetFilter

Namespace
Innova.Prism.Library.Controls
Assembly
Innova.Prism.Library.dll

GetFilter(string, Func<object, string>)

Gets a filter function which determines whether items should be suggested or not for the specified query. Default: Gets the filter which maps an item to true if its text contains the query (case insensitive).

public virtual Predicate<object> GetFilter(string query, Func<object, string> stringFromItem)

Parameters

query string

The string input by user.

stringFromItem Func<object, string>

The function to get a string which identifies the specified item.

Returns

Predicate<object>