问题描述
是否可以避免使用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.
有可能吗?
谢谢
推荐答案
你为什么不想要SkyDrive?情节是什么?
Why do you not want SkyDrive? What is the scenario?
这篇关于避免通过FileOpenPicker选择skydrive文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!