public override async Task OnNavigatedToAsync(object parameter, NavigationMode mode, IDictionary <string, object> state) { // Calls method to initialize services. this.InitializeServices(); TakePhotoCommand.Execute(null); await base.OnNavigatedToAsync(parameter, mode, state); }
private async void OnHowYaWantPiczCommandExecuted() { try { string[] btnz = { newPhoto, selectPhoto }; var choice = await _userDialogs.ActionSheetAsync("Got any broat pics?", "nah", null, null, btnz); if (choice == newPhoto) { TakePhotoCommand.Execute(); } else if (choice == selectPhoto) { OpenPhotoCommand.Execute(); } } catch (Exception ex) { Debug.Write(ex.Message + " " + ex.InnerException); } }
public override async Task OnNavigatedToAsync(object parameter, NavigationMode mode, IDictionary <string, object> state) { TakePhotoCommand.Execute(null); await base.OnNavigatedToAsync(parameter, mode, state); }
public void ProcessPhoto(object image) { TakePhotoCommand.Execute(image); }