How to: Use the Share Link Task for Windows Phone
Windows Phone
March 23, 2012
Use the share link task to enable the user to share a link on the social network of their choice.
By using Launchers, you help provide a consistent user experience throughout the Windows Phone platform. For more information, see Launchers and Choosers Overview for Windows Phone.
To use the share link task
Add the following statements to your code.
Add the following code to your application wherever you need it, such as in a button click event. To test this procedure, you can put the code in the page constructor. This is the code to launch the task.
ShareLinkTask shareLinkTask = new ShareLinkTask(); shareLinkTask.Title = "Code Samples"; shareLinkTask.LinkUri = new Uri("http://msdn.microsoft.com/en-us/library/ff431744(v=VS.92).aspx", UriKind.Absolute); shareLinkTask.Message = "Here are some great code samples for Windows Phone."; shareLinkTask.Show();