public async Task ShowChild(Child child, bool?isNew = false) { CurrentChild = child; var childProfileItemVM = new ChildProfileItem(child); if (isNew.Value) { childProfileItemVM.FirstAdd = true; } await ShowPage(typeof(Views.ChildProfileItem), childProfileItemVM); }
public async Task ShowChild(Child child, bool?isNew = false) { var childProfileItemVM = new ChildProfileItem(child); await childProfileItemVM.InitAsync(); await App.RootPage.Navigation.PushAsync(new Views.ChildProfileItem { BindingContext = childProfileItemVM }); if (isNew == true) { //Go directly to the basic details page for a new child. childProfileItemVM.EditChildDetailsCommand.Execute(null); } }