win8文件选取采用异步方法,PickSingleFileAsync目前只适用于win8,并不能应用于wp。
FileOpenPicker openPicker = new FileOpenPicker();
openPicker.FileTypeFilter.Add(".jpg");
StorageFile file = await openPicker.PickSingleFileAsync();
if (file != null)
{
}
2023-12-14 22:41:27
win8文件选取采用异步方法,PickSingleFileAsync目前只适用于win8,并不能应用于wp。
FileOpenPicker openPicker = new FileOpenPicker();
openPicker.FileTypeFilter.Add(".jpg");
StorageFile file = await openPicker.PickSingleFileAsync();
if (file != null)
{
}