Windows Phone: How to programmatically initiate the phone call?

Damir Dobric Posts

Next talks:

 

    

Follow me on Twitter: #ddobric



 

 

Archives

This post shows very trivial code which programmatically initiate the phone by using of cheapest network provider called Fake GSM Network. :)

Calling is a Task related action, which requires two assemblies to be referenced:

Microsoft.Phone
Microsoft.Phone.Tasks

Here is the self-explaining  sample code:

PhoneCallTask phoneTask = new PhoneCallTask();
phoneTask.PhoneNumber = "+38 7 174 9699";
phoneTask.DisplayName = "Fata Merkel";
phoneTask.Show();

Here is the result:

image

image


Posted Jun 06 2010, 12:54 AM by Damir Dobric
Filed under:
developers.de is a .Net Community Blog powered by daenet GmbH.