Class SfAutoCompleteItem
Represents the container for an item in a SfAutoComplete control.
Inheritance
System.Object
    SfAutoCompleteItem
  Namespace: Syncfusion.UI.Xaml.Editors
Assembly: Syncfusion.Editors.WinUI.dll
Syntax
public class SfAutoCompleteItem : ListViewItemExamples
The following example shows how to customize the template of SfAutoCompleteItem generated in the drop down list of AutoComplete control.
<Grid>
    <Grid.DataContext>
        <local:AutoCompleteViewModel/>
    </Grid.DataContext>
    <editors:SfAutoComplete ItemsSource="{Binding Sports}"
                            TextMemberPath="Name"
                            DisplayMemberPath="Name">
        <editors:SfAutoComplete.ItemTemplate>
            <DataTemplate>
               <TextBlock Text="{Binding Name}"
                          Foreground="Red"
                          FontWeight="Bold"/>
            </DataTemplate>
        </editors:SfAutoComplete.ItemTemplate>
    </editors:SfAutoComplete>
</Grid>Constructors
SfAutoCompleteItem()
Initializes a new instance of the SfAutoCompleteItem class.
Declaration
public SfAutoCompleteItem()Methods
OnCreateAutomationPeer()
Declaration
protected override AutomationPeer OnCreateAutomationPeer()Returns
| Type | 
|---|
| Microsoft.UI.Xaml.Automation.Peers.AutomationPeer |