有没有一种方法可以使用Windows 8.1 (RT) FileOpenPicker从图片库中选择图像,而不提供使用相机?
FileOpenPicker openPicker = new FileOpenPicker();
openPicker.ViewMode = PickerViewMode.Thumbnail;
openPicker.SuggestedStartLocation = PickerLocationId.PicturesLibrary;
openPicker.FileTypeFilter.Add(".jpg");
openPicker.PickSingleFileAndContinue();上面的代码打开一个图像选择器视图,其中包含库中的图像和底部的照相机按钮。那个照相机按钮能移除吗?
发布于 2015-08-27 10:35:02
为了在文件选择器中提供一致的用户体验,当您像通过指定.jpg那样添加基于图像的文件筛选器时,为了方便起见,添加了相机按钮。
它不能被移除。
https://stackoverflow.com/questions/32236773
复制相似问题