You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a dynamic resource in TransparencyBackgroundFallback on a Window, it doesn't honor the light and dark variant resource based on the actual theme. Switching the theme will leave you stuck with the initial value.
To Reproduce
Create an empty project and set the following properties on a Window:
Thanks for the feedback! I'm happy to submit a PR but I'm not sure what the right way would be to improve the code. Do I just call the Bind method for that property? Do I need to take care of disposal of the binding?
Describe the bug
As discussed here: #16091
When using a dynamic resource in
TransparencyBackgroundFallback
on aWindow
, it doesn't honor the light and dark variant resource based on the actual theme. Switching the theme will leave you stuck with the initial value.To Reproduce
Create an empty project and set the following properties on a
Window
:Toggling the theme during runtime when Mica is not available does not use the
ThemeBackgroundBrush
for the current theme.Expected behavior
Toggling the theme during runtime when Mica is not available should use the
ThemeBackgroundBrush
for the current theme.Avalonia version
11.1.0-rc1
OS
Windows
Additional context
No response
The text was updated successfully, but these errors were encountered: