Ejemplo n.º 1
0
        private async void LoadPicturesCommand(object parameter)
        {
            var selectedFiles = await FilePickerController.GetPictures();

            if (selectedFiles.Count != 0)
            {
                this.ExecuteLoad(selectedFiles);
            }
        }
Ejemplo n.º 2
0
        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);
            }
        }
Ejemplo n.º 4
0
        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);
            }
        }