我顯示與下面的代碼的照片廊:訪問攝像頭的Windows Phone 10
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中的攝像頭按鈕?