AutoCompleteBox.

ItemTemplate Property

Summary

Gets or sets the Avalonia.DataTemplate used to display each item in the drop-down portion of the control.
Namespace
Avalonia.Controls
Containing Type
AutoCompleteBox

Syntax

public IDataTemplate ItemTemplate { get; set; }

Remarks

You use the ItemTemplate property to specify the visualization of the data objects in the drop-down portion of the AutoCompleteBox control. If your AutoCompleteBox is bound to a collection and you do not provide specific display instructions by using a DataTemplate, the resulting UI of each item is a string representation of each object in the underlying collection.

Value

Type Description
IDataTemplate The Avalonia.DataTemplate used to display each item in the drop-down. The default is null.