Windows Phone 8.1 and Windows Runtime Apps How to #3 – How to make a Phone Call in Windows Phone 8.1 XAML App ?

In the Windows Phone 8.0 and earlier versions , the developers could use the PhoneCallTask which allows the use to make a phone call. If you are targeting Windows Phone 8.1 Silverlight App model , this will still work fine . How about the Windows Phone 8.1 Windows Runtime App ?

How to make a Phone Call in Windows Phone 8.1 XAML App ?

If you are targeting the Windows Phone 8.1 XAML App (Windows Runtime App) , you can use the ShowPhoneCallUI static method that is defined in the PhoneCallManager class .

Below is a method that demonstrates how to show the Phone Call UI / Dialler programmatically from your app.

// Make a phone call using the PhoneCallManager in Windows Phone 8.1 WinRT App
public void MakePhoneCall(string PhoneNumber,string DisplayName)
{
   Windows.ApplicationModel.Calls.PhoneCallManager.ShowPhoneCallUI(PhoneNumber, DisplayName);
}

When the above method is called by passing the phone number and the display name as shown below , you will see the Phone Call UI .

MakePhoneCall("0000000000", "Senthil Kumar");
1
How to make a Phone Call in Windows Phone 8.1 XAML App ?

    2 Comments

  1. Giorgio Laconi
    May 9, 2016
    Reply

    Perfect, thank you!

  2. Eugene
    September 26, 2016
    Reply

    Is there any way to avoid conformation of dialing?

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

This blog post will guide you through several effective methods to troubleshoot and resolve the issue of Microsoft Edge not...
Windows 11 offers a range of audio enhancements that can enrich your listening experience. These enhancements include features like virtual...
Windows 11 brings a fresh and visually stunning design to your desktop, and one of the standout features is the...