gpt4 book ai didi

xamarin.forms - 我们可以在 xamarin 中通过 DisplayAlert() 方法为警报框上显示的按钮赋予不同的颜色吗?

转载 作者:行者123 更新时间:2023-12-03 17:43:03 24 4
gpt4 key购买 nike

我们可以在 Xamarin.Forms 中通过 DisplayAlert() 方法为警报框上显示的按钮赋予不同的颜色吗?

我可以在 android 中找到它的解决方案,但我无法进入 Xamarin.Forms。

最佳答案

这是不可能的。与 DisplayActionSheet ,您只能使用一个“破坏性”操作,该操作在大多数操作系统上都是红色的。

不过,您可以编写自定义版本的警报框。这是一个很好的代码库:https://github.com/aritchie/userdialogs

关于xamarin.forms - 我们可以在 xamarin 中通过 DisplayAlert() 方法为警报框上显示的按钮赋予不同的颜色吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31517842/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com