-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[regression/7.0.0] Application.Current.RequestedThemeChanged event only raises once #8236
Comments
verified repro on android using above project. |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
Is this a duplicate of #10310 |
This is not limited to AppThemeBinding, I'm use the DynamicResource model and have the same issue except I never see the RequestedThemeChangedEvent. If anyone else is see this, I've put together a workaround at https://github.com/DanTravison/ThemeSelector. |
Any news? |
This will be fixed in #11200 |
@mattleibow when this will be available on stable channel |
@mattleibow Yes, and how to update MAUI to the version where this fix will be fixed? If in Xamarin.Forms it was necessary to update nuget packages, but in MAUI??? |
How to Update the .NET 7 MAUI to the newest Release? |
Description
Application.Current.RequestedThemeChanged event only raise on first change. It does not get called after second change and subsequent changes. I wrote the UI in C# and want to change the Resource dictionary according to the selected theme.
Steps to Reproduce
Run the repro project and put break point at line 11
Current_RequestedThemeChanged
method of App.xaml.cs. The event will fire on first change of mode and but did not afterwards.MauiApp1.zip
Version with bug
6.0.400 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android, I was not able test on other platforms
Affected platform versions
Android 11
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: