Windows phone 8 等待DisplayActionSheet(…)立即返回null

Windows phone 8 等待DisplayActionSheet(…)立即返回null,windows-phone-8,xamarin,xamarin.forms,Windows Phone 8,Xamarin,Xamarin.forms,我在运行应用程序后更改主页。 在此之后,任何调用wait DisplayActionSheet(…)和wait DisplayAlert(…)立即返回null。但只在WindowsPhone上。 您知道更改主页的正确方法吗? 有问题的源我原以为您必须在返回之前将DisplayActionSheet的响应分配给一个变量,例如 而不是: return await DisplayActionSheet... 使用: 你能分享你的代码吗?你尝试了什么?添加了源代码的链接 var response =

我在运行应用程序后更改主页。 在此之后,任何调用wait DisplayActionSheet(…)和wait DisplayAlert(…)立即返回null。但只在WindowsPhone上。 您知道更改主页的正确方法吗?
有问题的源

我原以为您必须在返回之前将DisplayActionSheet的响应分配给一个变量,例如

而不是:

return await DisplayActionSheet...
使用:


你能分享你的代码吗?你尝试了什么?添加了源代码的链接
var response = await DisplayActionSheet...
return response;