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

In this post, you will learn about sync provider notifications in Windows 11 and how to disable or enable it...
In this tutorial, let’s learn how to enable or disable the startup sound in Windows 11. By default, when Windows...
The CameraCaptureTask allows the Windows Phone 7 App to launch the Camera Application . This will be useful when the...