Search code examples
c#camerawindows-runtimewindows-phone-8.1fileopenpicker

FileOpenPicker without Camera


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?


Solution

  • 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.