private async void LoadPicturesCommand(object parameter) { var selectedFiles = await FilePickerController.GetPictures(); if (selectedFiles.Count != 0) { this.ExecuteLoad(selectedFiles); } }
private async void Navigate(ViewType view) { var selectedFiles = await FilePickerController.GetPictures(); if (selectedFiles != null && selectedFiles.Count != 0) { this.NavigationService.Navigate(view, selectedFiles); } }
private async void LoadPicturesCommand(object parameter) { var selectedFiles = await FilePickerController.GetPictures(); if (selectedFiles != null && selectedFiles.Count != 0) { this.NavigationService.Navigate(ViewType.Custom, selectedFiles); } }
private async void TakePictureCommand(object parameter) { var cameraCapture = new CameraCaptureUI(); cameraCapture.PhotoSettings.CroppedAspectRatio = new Size(4, 3); var file = await cameraCapture.CaptureFileAsync(CameraCaptureUIMode.Photo); if (file != null) { FilePickerController.SavePicture(file); } }