Reputation:
Is there a way to use Windows Phone 8.1 (RT) FileOpenPicker
to select an image from the pictures library without offering to use the camera?
FileOpenPicker openPicker = new FileOpenPicker();
openPicker.ViewMode = PickerViewMode.Thumbnail;
openPicker.SuggestedStartLocation = PickerLocationId.PicturesLibrary;
openPicker.FileTypeFilter.Add(".jpg");
openPicker.PickSingleFileAndContinue();
Above code opens an image picker view with images from the library and a camera button on the bottom. Can that camera button be removed?
Upvotes: 3
Views: 305
Reputation: 59763
To provide a consistent user experience in the file picker, when you add an image based file filter as you have done by specifying .jpg
, the camera button is added as a convenience.
It cannot be removed.
Upvotes: 2