Skip to main content

AutoCompleteFilterPredicate<T> Delegate

Represents the filter used by the AutoCompleteBox control to determine whether an item is a possible match for the specified text.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

public delegate bool AutoCompleteFilterPredicate<T>(
string? search,
T item
)

Parameters

  String
The string used as the basis for filtering.
  T
The item that is compared with the search parameter.

Type Parameters

The type used for filtering the AutoCompleteBox. This type can be either a string or an object.

Return Value

Boolean
true to indicate item is a possible match for search; otherwise false.

See Also

Reference

Avalonia.Controls Namespace