Skip to main content

FilterMode Property

Gets or sets how the text in the text box is used to filter items specified by the ItemsSource property for display in the drop-down.

Definition

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

public AutoCompleteFilterMode FilterMode { get; set; }

Property Value

AutoCompleteFilterMode
One of the AutoCompleteFilterMode values The default is StartsWith.

Remarks

Use the FilterMode property to specify how possible matches are filtered. For example, possible matches can be filtered in a predefined or custom way. The search mode is automatically set to Custom if you set the ItemFilter property.

Exceptions

ArgumentExceptionThe specified value is not a valid AutoCompleteFilterMode.

See Also

Reference

AutoCompleteBox Class
Avalonia.Controls Namespace