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

Posting a Status Update to Social Networks Using the ShareStatusTask

The share status task is used to enable the user to post a status update to one or more social networks. The ShareStatusTask contains a single Status property of type string. When the Show method is called, the ShareStatusTask presents the built-in message sharing app. See the following excerpt:

ShareStatusTask task = new ShareStatusTask();task.Status = "I'm loving the new features of the Windows Phone API!";task.Show();

The sample for the ShareStatusTask is a page called ShareStatusTaskView, which allows the user to enter some text and to launch the ShareLinkTask via an application bar button.

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