Windows Phone 8.1 - FileOpenPicker 按名称过滤 [英] Windows Phone 8.1 - FileOpenPicker filter by name

查看:23
本文介绍了Windows Phone 8.1 - FileOpenPicker 按名称过滤的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发 Windows Phone 应用程序(Windows 运行时,而不是 Windows Phone Silverlight 8.1).在其中,我必须让用户选择多张照片来对它们进行一些处理.为了实现这一点,我使用了 FileOpenPicker 类,它工作正常.但我只想显示名称不以给定字符串开头的图片,例如abc-".因此,在这种情况下,我只希望 FileOpenPicker 显示名称不以abc-"开头的图片.那么,有可能做到这一点吗?如果不可能,我该如何实现?谢谢你.(我正在使用

I'm developing a Windows Phone app (Windows Runtime, not Windows Phone Silverlight 8.1). In it, I have to let the user select multiple photos to do some processing with them. To accomplish this, I'm using the FileOpenPicker class, and it works fine. But I want to show only the pictures whose name doesn't start with a given string, for example, "abc-". So, in this case, I would only want the FileOpenPicker to display the pictures whose name doesn't start with " abc-". So, is it possible to do this? If it is not possible, how can I accomplish it? Thank you. (I'm launching the FileOpenPicker with

fileOpenPicker.PickMultipleFilesAndContinue();

推荐答案

不,这是不可能的.您只能根据文件类型进行过滤.

No, it's not possible. You can filter only on the file type.

您可以在 Windows 开发平台反馈网站上发布或投票支持功能请求.

You can post or vote for feature requests on the Windows Dev Platform Feedback site.

这篇关于Windows Phone 8.1 - FileOpenPicker 按名称过滤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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