ObservableCollection<Employee> employeeDetails = new ObservableCollection<Employee>();
employeeDetails.Add(new Employee("Jack", "a0.png"));
employeeDetails.Add(new Employee("John", "a1.png"));
employeeDetails.Add(new Employee("James", "a2.png"));
employeeDetails.Add(new Employee("Jacob", "a3.png"));
employeeDetails.Add(new Employee("Alice", "a4.png"));
employeeDetails.Add(new Employee("Arron", "a5.png"));
employeeDetails.Add(new Employee("Aleena", "b0.png"));
//To display the Name, set the DisplayMemberPath
countryAutoComplete.DisplayMemberPath = "Name";
//To display the Image, set the ImageMemberPath
countryAutoComplete.ImageMemberPath = "Image";
//Add the data source
countryAutoComplete.DataSource = employeeDetails; |