【发布时间】:2014-04-22 16:26:16
【问题描述】:
我需要开发一个应用程序,以便使用 Visual Studio 从 Windows Phone 8 应用程序拨打电话。
但我找不到任何资源来做这件事。
单击按钮时,我需要拨打已提供的手机号码。
通过单击该按钮,我只能拨打该手机号码。
这是我编码的。单击给定按钮时,我此方法正在调用...
private void HyperlinkButton_Click_1(object sender, RoutedEventArgs e)
{
PhoneCallTask phoneCallTask = new PhoneCallTask();
phoneCallTask.PhoneNumber = "0719957868";
phoneCallTask.DisplayName = "Gage";
phoneCallTask.Show();
}
但我得到一个未处理的异常。
未处理的异常。
// Code to execute on Unhandled Exceptions
private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
{
if (Debugger.IsAttached)
{
// An unhandled exception has occurred; break into the debugger
Debugger.Break();
}
}
【问题讨论】:
标签: windows-phone-8 phone-call