简体   繁体   English

从Windows 8应用程序(C#)打开图片库

[英]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.

相关问题 如何从ImageSource对象获取Stream以保存在图片库中? (Windows Phone 7,C#) - How to get Stream from ImageSource object for saving in Pictures Library? (Windows Phone 7, C#) C#库用于处理图片 - C# library for handling pictures 在Windows 8 App C#中将位图另存为jpg到图片中的文件夹 - Save bitmap as jpg to folder in pictures in windows 8 app c# C#:从Windows桌面应用程序打开浏览器并POST到URL - C#: Open a browser and POST to a url from a windows desktop app 在Windows 8 Metro App C#中打开文件 - Open a file in Windows 8 Metro App C# Metro / Windows 8 + C#/ XAML:如何找到文档库中存储的图片的有效URI? - Metro/Windows 8 + C#/XAML: How to find valid URIs to pictures stored in the Documents Library? 如何从Windows资源管理器C#打开Sharepoint库 - how can i open sharepoint library from windows explorer C# 从 C# 打开两个控制台窗口 - Open two console windows from C# C#如何从图片库WP8.1 Silverlight加载图片 - c# how to load pictures from picture library, WP8.1 Silverlight 有没有办法将 Windows 控制台应用程序转换为库,然后从 ac# web 应用程序 html 链接调用其中一种方法? - Is there a way to convert a Windows Console app into a library, and then call one of the methods from a c# web application html link?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM