【发布时间】:2015-08-26 21:11:46
【问题描述】:
有没有一种方法可以使用 Windows Phone 8.1 (RT) FileOpenPicker 从图片库中选择图像而不提供使用相机?
FileOpenPicker openPicker = new FileOpenPicker();
openPicker.ViewMode = PickerViewMode.Thumbnail;
openPicker.SuggestedStartLocation = PickerLocationId.PicturesLibrary;
openPicker.FileTypeFilter.Add(".jpg");
openPicker.PickSingleFileAndContinue();
上面的代码打开了一个图像选择器视图,其中包含库中的图像和底部的相机按钮。那个相机按钮可以去掉吗?
【问题讨论】:
标签: c# camera windows-runtime windows-phone-8.1 fileopenpicker