【发布时间】:2022-01-08 19:43:57
【问题描述】:
如果目标设备启用了暗模式,谁能告诉我为什么我在Xamarin.Forms 应用程序中的颜色会发生变化。
这是我的代码:
<Setter Property="BackgroundColor" Value="{ AppThemeBinding Dark=#99f2c8}" />
和AppShell.xaml 我将FlyoutBackgroundColor 设置为#ffff
当我的设备处于光照模式时,我们会看到如下内容:
如果它处于黑暗模式,我们将看到: enter image description here
我的颜色会自动变暗。如何预防?
【问题讨论】:
标签: c# android .net xamarin xamarin.android