I'm displaying the photos gallery with the following code:
FileOpenPicker openPicker = new FileOpenPicker();
openPicker.ViewMode = PickerViewMode.Thumbnail;
openPicker.SuggestedStartLocation = PickerLocationId.PicturesLibrary;
openPicker.FileTypeFilter.Add(".jpg");
openPicker.FileTypeFilter.Add(".jpeg");
openPicker.FileTypeFilter.Add(".png");
filePicker.PickSingleFileAndContinue();
In Windows Phone 8.1 the FileOpenPicker
is showing the camera button in the ApplicationBar
.
When using the same code for Windows Phone 10 a confirm and cancel button is shown instead of the camera.
How do I show the camera button as in 8.1?
Tapping Choose location
in the ApplicationBar
will prompt you with a list of supported apps for photos, including the camera.
Even though I find this less prominent (and weird localisation) than Windows Phone 8.1, I guess this is the way to go to launch the camera.