'Declaration
Public Property DisplayMemberPath As String
'Usage
Dim instance As AutoCompleteTextBox Dim value As String instance.DisplayMemberPath = value value = instance.DisplayMemberPath
public string DisplayMemberPath {get; set;}
'Declaration
Public Property DisplayMemberPath As String
'Usage
Dim instance As AutoCompleteTextBox Dim value As String instance.DisplayMemberPath = value value = instance.DisplayMemberPath
public string DisplayMemberPath {get; set;}
To understand how this works, imagine that the ItemsSource is a list of persons with various informations divided into different properties, like Names, Surname, Age, etc., all contained within a Persons object. The DisplayMemberPath property could be set to target the Name property held within the Person object so that the AutoCompleteTextBox suggests the names of the persons listed in the Persons object.
Note that if no value is specified for the DisplayMemberPath property, the object.ToString() method will be used instead.
Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2