避免通过FileOpenPicker选择skydrive文件 [英] Avoiding to select skydrive files by the FileOpenPicker

查看:56
本文介绍了避免通过FileOpenPicker选择skydrive文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以避免使用FileOpenPicker选择SkyDrive文件?

Is it possible to avoid of selecting SkyDrive files using FileOpenPicker?

这是我的代码:

FileOpenPicker open = new FileOpenPicker();

         ;    open.SuggestedStartLocation = PickerLocationId.PicturesLibrary;

            open.ViewMode = PickerViewMode.Thumbnail;

FileOpenPicker open = new FileOpenPicker();
            open.SuggestedStartLocation = PickerLocationId.PicturesLibrary;
            open.ViewMode = PickerViewMode.Thumbnail;

            //过滤以包含文件类型的示例子集

            open.FileTypeFilter.Clear();

            open.FileTypeFilter.Add(" .bmp");

            open.FileTypeFilter.Add(" .png");

            open.FileTypeFilter.Add(" .jpeg");

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

            // Filter to include a sample subset of file types
            open.FileTypeFilter.Clear();
            open.FileTypeFilter.Add(".bmp");
            open.FileTypeFilter.Add(".png");
            open.FileTypeFilter.Add(".jpeg");
            open.FileTypeFilter.Add(".jpg");

            //打开所选文件的流

            StorageFile file = await open.PickSingleFileAsync();

            // Open a stream for the selected file
            StorageFile file = await open.PickSingleFileAsync();

我不希望用户也可以选择skydrive文件。

I' don't want that the user can select also skydrive files.

有可能吗?

谢谢

推荐答案

不,用户可以选择她想要的任何位置。

No, the user can choose any location she desires.

你为什么不想要SkyDrive?情节是什么?

Why do you not want SkyDrive? What is the scenario?


这篇关于避免通过FileOpenPicker选择skydrive文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆