首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >FileOpenPicker -如何指定自定义启动路径

FileOpenPicker -如何指定自定义启动路径
EN

Stack Overflow用户
提问于 2017-12-18 18:54:52
回答 1查看 738关注 0票数 1

你能告诉我如何在文件打开选择器类中指定自定义启动路径吗??

'openPicker.SuggestedStartLocation‘不显示自定义路径选项。

感谢您的阅读!

代码语言:javascript
复制
        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
        {
            //
        }
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-12-18 19:45:08

恐怕您不能为它指定自定义的启动路径。你只能使用那里提到的路径。你可以在over here上读到它。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47866950

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档