Windows-8.1

How to use ShareStatus Task and ShareLink Task in Windows phone app

This is the sixth blog post of this series in which I am going to talk about ShareStatus task and ShareLink task in Windows phone app.

 

1. First create a new project having the name Statustask.

 


 

2. Before going further add the following Namespace required for the above tasks in the MainPage.xaml.cs.

 

 

ShareStatus Task

It launches a dialog that enables the user to share a status message on the social networks (Facebook, Windows Live, etc.).

To use it you need to create a new instance of this task, set the status property and the launch the task.

In the following project I have created a new button on the MainPage.xaml to launch the task. The code for click event handler of button is given below.

 

 


 

ShareLink Task

It launches a dialog that enables the user to share a link on the social networks like for example Facebook, Windows Live, etc.

To use it you need to create a new instance of this task, set the desired properties as given below and then launch the task.

In the following project I have created a new button on the MainPage.xaml to launch the task. The code for click event handler of button is given below.

 

 


 

I hope this post will be helpful to you. You can download the full project source file from the link given below.

 
Download full project file Statustask.zip
 

Chetan Gulati

Currently am doing B TECH in IT from Delhi Technological University. App development is my passion. Believe in quality rather than quantity.

Read more:
How to create your first Windows Phone app
How to change the App name and Tile name of your Windows phone app
Data binding in Windows Phone app – One way binding
Close