O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Sending Contacts a Link Using the ShareLinkTask

The share link task is used to enable the user to share a link on one or more social networks.

The ShareLinkTask allows you to specify a link URI, title, and message, as shown in the following excerpt:

ShareLinkTask task = new ShareLinkTask    {        LinkUri = new Uri("http://linkd.in/jnFoqE", UriKind.Absolute),        Title = "Check out the Windows Phone Experts group.",        Message = "Interested in Windows Phone development? "                    + " Join the Windows Phone Experts group on Linked-In!"    };task.Show();

When the task’s Show method is called, the built-in link sharing app is launched, allowing the user to select various social networks, such as ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required