AutocompleteBehavior
This class presents a behavior for the autocomplete used in the ItemsControls.
Definition
Namespace:Telerik.Windows.Controls.Primitives
Assembly:Telerik.Windows.Controls.dll
Syntax:
public class AutocompleteBehavior
Inheritance: objectAutocompleteBehavior
Constructors
Initializes a new instance of the AutocompleteBehavior class.
public AutocompleteBehavior()
Properties
Gets or sets a value indicating whether a custom text is allowed.
public bool AllowCustomText { get; set; }
Gets or sets the autocomplete timeout. When the timeout is over, the typed text for the autocomplete is reset.
public static TimeSpan AutoCompleteTimeout { get; set; }
Gets the current text that is used for the autocomplete.
public string CurrentText { get; }
Gets or sets whether the item associated with the index is selectable.
public Func<int, bool> IsIndexSelectable { get; set; }
Gets or sets the ItemSearch for the autocomplete. The IItemSearchControl object defines the logic how the items are found with the retrievers.
public IItemSearchControl ItemSearch { get; set; }
Gets the last length of the selection.
protected int LastSelectionLength { get; }
Gets the last selection start.
protected int LastSelectionStart { get; }
Gets the matching item.
public object MatchingItem { get; }
Gets or sets the text Retriever that is used for autocomplete.
public IValueRetriever TextRetriever { get; set; }
Gets or sets the text search mode. Specifies how TextSearch will match items.
public TextSearchMode TextSearchMode { get; set; }
The text search mode.
Gets or sets the text source.
public ITextSource TextSource { get; set; }
Methods
Extracts the current text from the current selection to its length.
This property is used to detect whether the test source selection change is detected or not.
This property is used to detect whether the test source text change is detected or not.
Updates the current text.
Updates the text source state cache.
protected virtual void UpdateTextSourceStateCache()
Events
Occurs when current text is changed.
public event EventHandler CurrentTextChanged
Occurs when matching item is changed.
public event EventHandler MatchingItemChanged