Update Status with ShareStatusTask in Windows Phone

If you wish to share a status from your App to Facebook , Twitter or LinkedIn in Windows Phone , you can use the ShareStatusTask to achieve it .

The ShareStatusTask is a launcher that enables the user to update the status message on the social networking sites on Windows Phone .

Add the namespace to the code behind file

using Microsoft.Phone.Tasks;

Add the following code . Instantiate the ShareStatusTask launcher , set status property and call the Show method

private void button1_Click(object sender, RoutedEventArgs e)
{
ShareStatusTask status = new ShareStatusTask();
status.Status = "This is a test message";
status.Show();
}

When the Show method is called , the Launcher opens a form where you could select the social networking sites to update the status . 

Update Status with ShareStatusTask in Windows Phone

Update Status with ShareStatusTask in Windows Phone

 

Update Status with ShareStatusTask in Windows Phone

Update Status with ShareStatusTask in Windows Phone

Leave a Reply