你能告诉我如何在文件打开选择器类中指定自定义启动路径吗??
'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
{
//
}发布于 2017-12-18 19:45:08
恐怕您不能为它指定自定义的启动路径。你只能使用那里提到的路径。你可以在over here上读到它。
https://stackoverflow.com/questions/47866950
复制相似问题