The value of Application.Current.RequestedThemeshould carry the OS Dark Mode setting and shouldn't change as long as the OS Dark mode setting hasn't been changed. But when Application.Current.UserAppTheme is set to either OSAppTheme.Light or OSAppTheme.Dark the value of Application.Current.RequestedTheme changes respectively to the same value Application.Current.UserAppTheme is changed to.
Steps to Reproduce:
Enable Android's Dark mode / Disable Androids dark mode
Run:
Application.Current.UserAppTheme = OSAppTheme.Light;
var theme = Application.Current.RequestedTheme;
or run:
Application.Current.UserAppTheme = OSAppTheme.Dark;
var theme = Application.Current.RequestedTheme;
respectively.
In case Dark Mode is enabled the value of Application.Current.RequestedTheme should be OSAppTheme.Dark and when Dark Mode is disabled it should be OSAppTheme.Light
The values of Application.Current.RequestedTheme are the opposite from the ones expected.
The value of
Application.Current.RequestedTheme
should carry the OS Dark Mode setting and shouldn't change as long as the OS Dark mode setting hasn't been changed. But whenApplication.Current.UserAppTheme
is set to eitherOSAppTheme.Light
orOSAppTheme.Dark
the value ofApplication.Current.RequestedTheme
changes respectively to the same valueApplication.Current.UserAppTheme
is changed to.Steps to Reproduce:
or run:
respectively.
In case Dark Mode is enabled the value of
Application.Current.RequestedTheme
should beOSAppTheme.Dark
and when Dark Mode is disabled it should beOSAppTheme.Light
The values of
Application.Current.RequestedTheme
are the opposite from the ones expected.Basic Information