如何使用 FileOpenPicker 从 OneDrive 打开文件?

How to open a file from OneDrive with FileOpenPicker?

document 表示 "Your app can use the Windows file picker by using the Windows.Storage.Pickers namespace for opening and saving files to the user's OneDrive. " 当 FileOpenPicker 打开选择 window 时,找不到 OneDrive。该应用已使用范围 "wl.skydrive_update" 登录。 谁能提供这方面的提示?

您使用的是 Windows 10 通用应用程序吗?据我所知,Windows 8.1.

不支持此功能

编辑:(经过测试我知道彼得是对的) 这是一个我从来不知道存在的惊人功能。 正如 Peter 所解释的那样,我刚刚对其进行了测试,并使用选择器可以在 Onedrive 中打开现有文件,还可以在 Windows 8.1 商店应用程序中创建新文件。

这在 Windows 10 中可能效果不佳,因为我相信他们正在更改 Onedrive 以仅显示 "selected" 用于同步的文件,您不会看到所有现有文件默认。也许彼得可以对此发表评论。

如果您要使用 FolderPicker,则无需使用 Live SDK - 用户只需从位置(屏幕左上角开始说"This PC").