Windows 8的手机应用 - 如何添加"分享应用程序和QUOT;按钮?

问题描述:

我有一个应用程序,我想一个分享按钮添加到它。一旦按钮被点击,我想它打开下面的窗口:

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?

也许你想 工作 在 Microsoft.P​​hone.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 :