public DetailsViewModel(Person person) { Person = person; }
protected virtual void RaiseItemSelected(Person person) { EventHandler handler = ItemSelected; if (handler != null) handler(this, new PersonEventArgs(person)); }
private void NavigateTo(Person person) { PushAsync(new DetailsPage(person)); }
public PersonEventArgs(Person person) { Person = person; }
public DetailsPage(Person person) { InitializeComponent(); BindingContext = new DetailsViewModel(person); }