【发布时间】:2020-10-04 07:52:05
【问题描述】:
我对 Xamarin 完全陌生,所以这可能很明显。但是,当我运行具有 DisplayAlert 调用的 Xamarin 应用程序时,屏幕会变暗,但不会出现对话框:
<Button x:Name="PlayButton" Text="Play" HorizontalOptions="CenterAndExpand" HeightRequest="100" WidthRequest="200" FontSize="64" Clicked="PlayButton_ClickedAsync"/>
private async void PlayButton_ClickedAsync(object sender, EventArgs e)
{
await DisplayAlert("Play", "This is where we would start the game.", "OK");
}
如何使此警报实际显示?如果重要的话,我正在使用 UWP 应用程序进行测试,直到 Android 模拟器完成下载...
【问题讨论】:
-
哇...这个严重的错误已经知道了快四个月了,还没有修复?!
-
有没有办法将我的 Xamarin 临时降级到旧的工作版本?
-
XF 只是一个 nuget 包,你可以在 Nuget 管理器中选择你喜欢的任何版本
标签: c# xaml xamarin xamarin.uwp