Sending Email, SMS, making calls and giving reviews to the applications are very useful and common controls which you will find in different applications. These controls are also known as Launchers & Choosers and are available in the name space Microsoft.Phone.Tasks.

There are many marketplace controls available in Visual Studio 13 but here in our application we will use 4 of them namely , email,sms,phone and review.

Just create a new empty windows phone (SilverLight) application and named it as marketplace_controls or whatever you want.

Add four buttons and name them respectively, you can use the names of my demonstrated application also (as shown in the figure).  So lets begin with the code.


What you have to do is that assign a click event handler to all of the buttons and in each button place the following codes respectively:

EMAIL

EmailComposeTask EmailComposeTask = new EmailComposeTask();
EmailComposeTask.Subject = "Subject of your email";
EmailComposeTask.Show();

SMS

SmsComposeTask smsComposetask = new SmsComposeTask();
smsComposetask.Body = "Hello World";
smsComposetask.Show();

PHONE

PhoneCallTask phoneCallTask = new PhoneCallTask();
phoneCallTask.PhoneNumber = "03224995562";
phoneCallTask.DisplayName = "Bilal Amjad";
phoneCallTask.Show();

REVIEW

MarketplaceReviewTask review = new MarketplaceReviewTask();
review.Show();

Search Applications from Windows Store:

MarketPlace.Searchterms="Muhammad Bilal Amjad";
<!--Instead of my name you can add the name of any developer.-->

 

Download the Sample Code

Video Tutorial