private ResearcherView GetPage() { if (_view != null) { return(_view); } _view = new ResearcherView(); _view.Disappearing += view_Closed; return(_view); }
private void EditResearcher(object sender, EventArgs e) { var researcherPage = new ResearcherView { BindingContext = new ResearcherViewModel { Mode = Mode.Edit } }; Navigation.PushAsync(researcherPage); }
void view_Closed(object sender, EventArgs e) { _view = null; }