I'm trying to build dynamically a AutoCompleteBox. Then I want to use a list of Clients in my itemsource, and the user visualize the DescClient field.
List<Client> clients = ClientAction.getClientsFromUsers(Environment.UserName);
(field as AutoCompleteBox).ItemsSource = clients;
//CLIENT MEMBERS
private int idClient;
private string descClient;
private int idGroup;
private User user;
Already tried like:
(field as AutoCompleteBox).ValueMemberPath = "DescClient"
But doesn't show anything. Am I doing something wrong afecting the ValueMemberPath or should I use another Proprety?