我需要开发一个应用程序以使用Visual Studio从Windows Phone 8应用程序拨打电话。
但我找不到任何资源来做到这一点。
当一个按钮被点击时,我需要拨打已经给出的手机号码。
通过点击那个按钮,我必须只拨打那个手机号码。在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();
}
}
是的,它现在正在工作。 :)千谢谢.... :) – t4thilina