Is there a way to tell if the user has selected a Light or Dark theme?
Thanks!
There is a property to test for this, rather that comparing the actual resource color.
Visibility v = (Visibility)Resources["PhoneLightThemeVisibility"];
if (v == System.Windows.Visibility.Visible)
{
// Is light theme
}
else
{
// Is dark theme
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With