public ContacListViewModel(IContactService service) { _service = service; Contacts = new ObservableCollection<ContactItem>(service.GetThings()); AddCommand = new Command(Add); DeleteCommand = new Command<SelectedItemChangedEventArgs>(Delete); OnSelectionCommand = new Command<SelectedItemChangedEventArgs>(OnSelection); }