App.Current.RequestedThemeChanged doesn't fire #10310
Labels
area-core-lifecycle
XPlat and Native UIApplicationDelegate/Activity/Window lifecycle events
fixed-in-7.0.81
Look for this fix in 7.0.81!
fixed-in-7.0.92
Look for this fix in 7.0.92!
fixed-in-7.0.100
fixed-in-7.0.101
fixed-in-8.0.0-preview.3.8149
Look for this fix in 8.0.0-preview.3.8149!
p/1
Work that is important, and has been scheduled for release in this or an upcoming sprint
partner/cat 😻
this is an issue that impacts one of our partners or a customer our advisory team is engaged with
platform/macOS 🍏
macOS / Mac Catalyst
t/bug
Something isn't working
Milestone
Description
App.Current.RequestedThemeChanged doesn't fire IF the new UserAppTheme resolves to the current theme.
Example:
When the current theme is "Unspecified" and "Light", the event will ONLY fire when the user changes to "Dark".
When the current theme is "Light, the event will ONLY fire when the user changes to "Dark". Changing to "Unspecified" is equivalent to "Light" and thus won't fire the event.
I believe it should fire. I have 2 different UI controls that listen for theme change events and when it doesn't fire one may say "Light" while the other says "Unspecified" on the same screen.
Steps to Reproduce
do the things described
Link to public reproduction project repository
https://github.com/davidortinau/ControlGallery
Version with bug
6.0.486 (current)
Last version that worked well
Unknown/Other
Affected platforms
iOS, macOS, I was not able test on other platforms
Affected platform versions
latest
Did you find any workaround?
haven't tried
Relevant log output
No response
The text was updated successfully, but these errors were encountered: