你能告诉我如何在文件打开选择器类中指定自定义启动路径吗?
'openPicker.SuggestedStartLocation'未显示自定义路径选项。
谢谢你的阅读! FileOpenPicker openPicker = new FileOpenPicker();
openPicker.ViewMode = PickerViewMode.Thumbnail;
openPicker.SuggestedStartLocation = PickerLocationId.Desktop;
openPicker.FileTypeFilter.Add(".xml");
StorageFile file = await openPicker.PickSingleFileAsync();
if(file!=null)
{
var stream = await file.OpenAsync(Windows.Storage.FileAccessMode.Read);
}
else
{
//
}