Created
May 7, 2019 08:23
-
-
Save Juansero29/d463b8b0cb8e4f6ce83cdbdce91aaef2 to your computer and use it in GitHub Desktop.
GoToCustomerFormAsync
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private async Task GoToCustomerFormAsync(object obj) | |
| { | |
| var bc = new CustomerFormViewModel(Client) { Navigation = this.Navigation }; | |
| var c = new CRMNavigationPage(new CustomerFormPage() | |
| { | |
| BindingContext = bc, | |
| Title = "Fiche Client" | |
| }); | |
| // CancelHandler() ? | |
| await Navigation.PopModalAsync(); | |
| // If we want the nav. drawer to be present | |
| // await ((App.Current.MainPage.Navigation as RootPage).Detail as CRMNavigationPage).PushAsync(c); | |
| // await Navigation.PushModalAsync(c); | |
| // If we don't want the nav. drawer to be present | |
| await (App.Current.MainPage as RootPage).Master.Navigation.PushAsync(c); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.