private void LoadPeople() { var people = GetPeopleQuery.List(); VoorWieDropdown.ItemsSource = people; VoorWieDropdown.DisplayMemberPath = nameof(DocumentTypeDto.Name); VoorWieDropdown.SelectedValuePath = nameof(DocumentTypeDto.Id); }
public UserAdminViewModel()//:base(GetPeopleQuery.List().Select(x => new AdminItem { Id = x.Id, Name = x.Name }).ToList()) { var people = GetPeopleQuery.List() .Select(x => new AdminItem { Id = x.Id, Name = x.Name }).ToList(); Items = new ObservableCollection <AdminItem>(people); //OriginalItems = people; }