Skip to main content

MinimumPrefixLength Property

Gets or sets the minimum number of characters required to be entered in the text box before the AutoCompleteBox displays possible matches.

Definition

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

public int MinimumPrefixLength { get; set; }

Property Value

Int32
The minimum number of characters to be entered in the text box before the AutoCompleteBox displays possible matches. The default is 1.

Remarks

If you set MinimumPrefixLength to -1, the AutoCompleteBox will not provide possible matches. There is no maximum value, but setting MinimumPrefixLength to value that is too large will prevent the AutoCompleteBox from providing possible matches as well.

See Also

Reference

AutoCompleteBox Class
Avalonia.Controls Namespace