[英]Open pictures library from windows 8 app (c#)
I have an app that stores images in the pictures library in a subfolder. 我有一个应用程序,可将图像存储在子文件夹的图片库中。 When the pictures is saved a toast notification pops up alerting the user that the file was saved successfully. 保存图片后,将弹出烤面包通知,警告用户文件已成功保存。 However, I want that toast notification to be clickable, and when clicked I want it to open the pictures library to see all the saved files. 但是,我希望该吐司通知是可单击的,并且当单击时,我希望它打开图片库以查看所有保存的文件。
How can I launch explorer from an RT app? 如何从RT应用启动浏览器?
Due to the sandboxing you are not allowed to do that (launch the explorer form the windows store app), the only way you could access would be by using the filepicker, and setting the display mode to thumbnails. 由于使用沙箱操作,因此不允许这样做(从Windows Store应用程序启动资源管理器),唯一可以访问的方法是使用文件选择器,并将显示模式设置为缩略图。 Set folder location, viewmode and typefilter. 设置文件夹位置,视图模式和类型过滤器。 As long as the user selects, you dont need to set this as a capability. 只要用户选择,您就不需要将其设置为功能。
Filepicker: http://msdn.microsoft.com/en-us/library/windows/apps/hh465199.aspx Filepicker: http : //msdn.microsoft.com/zh-CN/library/windows/apps/hh465199.aspx
Similar question: Launch Windows Explorer from Metro style app 类似的问题: 从Metro风格的应用程序启动Windows资源管理器
General guidlines for thumbnails: http://msdn.microsoft.com/en-us/library/windows/apps/hh465350.aspx 缩略图的一般准则: http : //msdn.microsoft.com/zh-cn/library/windows/apps/hh465350.aspx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.