搜索/列出 WPF 资源文件?
有没有办法在 WPF 应用程序中搜索资源?
我已向应用程序添加了许多图像并想要执行搜索,即 MS*.jpg
等,这可能吗?
如果我可以创建所有资源的列表,那肯定也会有帮助,但我不希望它消耗太多性能(我将使其延迟加载)。
Is there a way to search a WPF application for resources?
I have added many images to an app and want to perform search i.e. MS*.jpg
etc., Is this possible?
If I could create a list of all the resources, that would surely be helpful as well, but I don't want it to cost to much performance (I will make it lazy loaded tho).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一旦将它们全部放在
IEnumerable
下,搜索工作就会容易得多。答案取自此处
Once you have them all under an
IEnumerable<string>
the search job is hell of a lot easier.Answer taken from here