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
In the latest WinUI 3 1.4 preview 1 build, MenuFlyoutItems Text theme doesn't update when the system theme is changed. I have a MenuFlyout in my Grid.Resources which I open using the RightTapped event of a button. If this menu isn't opened when I change the system theme, the background of the flyout is set properly, but the text color is not. If I switch from light mode to dark mode while this menu is closed, the text stays black. It only updates properly if the flyout is actually open when I change the system theme.
Steps to reproduce the bug
Create a MenuFlyout in your Grid.Resources
Open this menu, then close it.
While the menu is closed, change your system theme in Settings.
Notice how the text color is not changed to the correct color.
Expected behavior
I expected the text color to update whenever I change my system theme, regardless of its visibility.
Screenshots
(Yes, there is text here!)
Here's the bug in dark mode:
NuGet package version
WinUI 3 - Windows App SDK 1.4 Preview 1: 1.4.230628000-preview1
Windows version
Windows Insider Build (xxxxx)
Additional context
Windows 11 canary, 25905.1000.
The text was updated successfully, but these errors were encountered:
Describe the bug
In the latest WinUI 3 1.4 preview 1 build, MenuFlyoutItems Text theme doesn't update when the system theme is changed. I have a
MenuFlyout
in my Grid.Resources which I open using the RightTapped event of a button. If this menu isn't opened when I change the system theme, the background of the flyout is set properly, but the text color is not. If I switch from light mode to dark mode while this menu is closed, the text stays black. It only updates properly if the flyout is actually open when I change the system theme.Steps to reproduce the bug
MenuFlyout
in your Grid.ResourcesExpected behavior
I expected the text color to update whenever I change my system theme, regardless of its visibility.
Screenshots
(Yes, there is text here!)
![image](https://private-user-images.githubusercontent.com/83825746/255446508-ae1b54c2-6fb9-4a1a-8231-ae55210291cd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk2MDcwMzQsIm5iZiI6MTcxOTYwNjczNCwicGF0aCI6Ii84MzgyNTc0Ni8yNTU0NDY1MDgtYWUxYjU0YzItNmZiOS00YTFhLTgyMzEtYWU1NTIxMDI5MWNkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI4VDIwMzIxNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQwMzQ3MjMyOTYwYjM0N2FkZTBhMmRkY2EwODBjM2NjNzc0NjM1MzJiNmI5Yjc3YWVhMzc4YzY5YzU0Y2I0YmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.LTEldi9YIH_jfb21fZUceAYT4mIvf_S7uImkDzS9yEQ)
Here's the bug in dark mode:
![image](https://private-user-images.githubusercontent.com/83825746/255446596-48abd99a-db1e-4fa0-9b2c-03353e93f04c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk2MDcwMzQsIm5iZiI6MTcxOTYwNjczNCwicGF0aCI6Ii84MzgyNTc0Ni8yNTU0NDY1OTYtNDhhYmQ5OWEtZGIxZS00ZmEwLTliMmMtMDMzNTNlOTNmMDRjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI4VDIwMzIxNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWIxMDczMzIyMjI4YmQxNWQ0NDJiNzU3MmExZmU3YzUzNTJkZTQ1Nzc2ZTJkOTczZmU5ZjU5ZmRlODE1ZWVjMjImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.tfUd3yD_-WbkwGpn-VmC3H2t_bs6ub1vXqLRDAZVToo)
NuGet package version
WinUI 3 - Windows App SDK 1.4 Preview 1: 1.4.230628000-preview1
Windows version
Windows Insider Build (xxxxx)
Additional context
Windows 11 canary, 25905.1000.
The text was updated successfully, but these errors were encountered: