private void LoadContacts() { var contacts = App.ComponentRepository.GetAll(); uxComponentList.ItemsSource = contacts .Select(t => ComponentModel.ToModel(t)) .ToList(); // OR //var uiContactModelList = new List<ContactModel>(); //foreach (var repositoryContactModel in contacts) //{ // This is the .Select(t => ... ) // var uiContactModel = ContactModel.ToModel(repositoryContactModel); // // uiContactModelList.Add(uiContactModel); //} //uxContactList.ItemsSource = uiContactModelList; }