Subscribe to our YouTube Channel for more Videos

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
Senthil Kumar B
Senthil Kumar is a former Microsoft MVP (Most Valuable Professional). He is a Co-Author of the book "Windows 10 Development Recipes using JavaScript and CSS" for Apress Publication. He is a technical presenter, blogger, mentor and a Geek.  Senthil is a regular speaker is various local user groups. He has presented at conferences like Great Indian Developer Summit (GIDS) & Microsoft DevCamps. You can reach out to him via his Twitter handle @isenthil.