-
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
AppThemeBinding doesn't work on .NET7 #13627
Comments
Hi @BlyZeYT. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
Could you elaborate a bit more about "set any color with an AppThemeBinding."? How are you doing that exactly? On what element? I guess in this case we might not need a full-blown GitHub repo to show it, but at least please give some relevant concrete code that we can try to reproduce this issue. |
Perhaps related to: There seems to be several issues related to DynamicResource bindings, even I created one when used with MCT StatusBarBehavior, but it's in the MCT repo: |
I will send the Code soon I'm not Home yet :) |
Hi @BlyZeYT. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
MainPage.xaml code:
App.xaml code:
|
I tried this too but this doesn't work either, the event isn't even fired.
|
Duplicate of #8236 |
Description
When I use AppThemeBinding in .NET7 the Theme just not changes when I change between light and dark theme. I copied the exact same project in .NET6 and everything works just fine.
Steps to Reproduce
Expected outcome: Switches between the 2 themes
Actual outcome: It doesn't switch anything
Link to public reproduction project repository
The template project
Version with bug
7.0 (current)
Last version that worked well
6.0.424
Affected platforms
Android, I was not able test on other platforms
Affected platform versions
Android 12
Did you find any workaround?
No workaround found.
I could use Dynamic Resource but than the AppThemeBinding is useless.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: