【发布时间】:2016-01-22 14:42:18
【问题描述】:
我正在使用以下代码显示照片库:
FileOpenPicker openPicker = new FileOpenPicker();
openPicker.ViewMode = PickerViewMode.Thumbnail;
openPicker.SuggestedStartLocation = PickerLocationId.PicturesLibrary;
openPicker.FileTypeFilter.Add(".jpg");
openPicker.FileTypeFilter.Add(".jpeg");
openPicker.FileTypeFilter.Add(".png");
filePicker.PickSingleFileAndContinue();
在 Windows Phone 8.1 中,FileOpenPicker 在ApplicationBar 中显示相机按钮。
当对 Windows Phone 10 使用相同的代码时,会显示确认和取消按钮而不是相机。
如何在 8.1 中显示相机按钮?
【问题讨论】:
标签: c# windows-phone-8 windows-phone windows-10-mobile windows-10-universal