win8开发入门——文件选取

it2022-05-05  151

win8文件选取采用异步方法,PickSingleFileAsync目前只适用于win8,并不能应用于wp。

FileOpenPicker openPicker = new FileOpenPicker();

openPicker.FileTypeFilter.Add(".jpg");

StorageFile file = await openPicker.PickSingleFileAsync();

 if (file != null)

{

}

转载于:https://www.cnblogs.com/lzn1007/p/4119460.html


最新回复(0)