3

有没有办法使用 Windows Phone 8.1 (RT)FileOpenPicker从图片库中选择图像而不提供使用相机?

FileOpenPicker openPicker = new FileOpenPicker();
openPicker.ViewMode = PickerViewMode.Thumbnail;
openPicker.SuggestedStartLocation = PickerLocationId.PicturesLibrary;
openPicker.FileTypeFilter.Add(".jpg");
openPicker.PickSingleFileAndContinue();

上面的代码打开了一个图像选择器视图,其中包含库中的图像和底部的相机按钮。那个拍照键能去掉吗?

4

1 回答 1

3

为了在文件选择器中提供一致的用户体验,当您通过指定添加基于图像的文件过滤器时,添加.jpg相机按钮是为了方便。

它不能被删除。

于 2015-08-27T10:35:02.913 回答