关闭 Xamarin.Forms DisplayAlert [英] Close Xamarin.Forms DisplayAlert
本文介绍了关闭 Xamarin.Forms DisplayAlert的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有什么办法可以关闭 Xamarin.Forms DisplayAlert 没有用户交互?我无法提供 CancellationToken
.那么如何取消呢?
Is there any way to close a Xamarin.Forms DisplayAlert without user interaction?
There is no CancellationToken
that I can provide.
So how can I cancel it?
推荐答案
您不能使用默认的 Xamarin 警报.
You can't with the default Xamarin alert.
查看 ACR.UserDialogs NuGet 包.它确实支持CancellationToken
s.或者,如果您觉得勇敢地挖掘 GitHub 上的 Xamarin.Forms 存储库并自己创建拉取请求!
Have a look at the ACR.UserDialogs NuGet package. It does have support for CancellationToken
s. Or if you're feeling brave dig in the Xamarin.Forms repo on GitHub and create a pull request yourself!
这篇关于关闭 Xamarin.Forms DisplayAlert的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文