Workaround to force Xamarin.Forms WebView to use a dark mode CSS for local content on Android

added by DotNetKicks
4/6/2021 4:13:48 PM

526 Views

As the 'prefer-color-scheme'-CSS query does not work on Android with a Xamarin.Forms WebView, I needed find a workaround to support dark mode for local HTML content. In this post, I'll show you a Xamarin.Forms only workaround.


0 comments