Xceed Toolkit for .NET Maui v2.0 Documentation
Xceed.Maui.Toolkit Assembly / Xceed.Maui.Toolkit Namespace / AutoCompleteTextBox Class / DisplayMemberPath Property


In This Topic
    DisplayMemberPath Property (AutoCompleteTextBox)
    In This Topic
    Gets or sets a path to a value within the source object in order to provide a visual representation of said object.
    Syntax
    '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;}
    Remarks

    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.

    Requirements

    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

    See Also