Windows 8的手机应用 - 如何添加"分享应用程序和QUOT;按钮? [英] Windows 8 phone app - How to add "share app" button?
问题描述
我有一个应用程序,我想一个分享按钮添加到它。一旦按钮被点击,我想它打开下面的窗口:
I have an app, and I'd like to add a share button to it. Once the button is clicked, I'd like it to open the following window:
然后用户会选择在哪里分享它,它会显示以下默认信息:
Then the user will choose where to share it and it will display the following default message:
刚刚发现这个伟大的应用程序在这里找到:!的http://www.windowsphone.com/en-us/store/app/amtrak/c8824bb8-3a85-48f7-af54-954bd5673cc6\"
"Just found this great app! Find it here:http://www.windowsphone.com/en-us/store/app/amtrak/c8824bb8-3a85-48f7-af54-954bd5673cc6"
您能告诉我该怎么办呢?
Can you please tell me how to do it?
推荐答案
也许你想 工作
在<一个href=\"http://msdn.microsoft.com/en-US/library/windowsphone/develop/microsoft.phone.tasks%28v=vs.105%29.aspx\"相对=nofollow> Microsoft.Phone.Tasks 命名空间。和工作
来选择取决于你想分享什么样的信息:
Maybe you want Task
as in Microsoft.Phone.Tasks namespace. And which Task
to choose is depending on what kind of information you want to share :
- 媒体文件。
如何使用ShareMediaTask
- 链接/ URL。
如何使用ShareLinkTask
- 状态。
如何使用ShareStatusTask
这篇关于Windows 8的手机应用 - 如何添加&QUOT;分享应用程序和QUOT;按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!