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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU3NzIzODQsIm5iZiI6MTcyNTc3MjA4NCwicGF0aCI6Ii84MzgyNTc0Ni8yNTU0NDY1MDgtYWUxYjU0YzItNmZiOS00YTFhLTgyMzEtYWU1NTIxMDI5MWNkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA4VDA1MDgwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU4MzBjMDc0ZGRiZmQ0ZGU2NWQzM2M3MDJkYjZkZjEyNDUxMzhmNjNmYzQ3ZTIyY2E4M2JlZGZmM2E2MzE2Y2YmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ozSrbiFoLkath6mtRa0X9ZmdgpgmSanoTn7LC_262TI)
Here's the bug in dark mode:
![image](https://private-user-images.githubusercontent.com/83825746/255446596-48abd99a-db1e-4fa0-9b2c-03353e93f04c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU3NzIzODQsIm5iZiI6MTcyNTc3MjA4NCwicGF0aCI6Ii84MzgyNTc0Ni8yNTU0NDY1OTYtNDhhYmQ5OWEtZGIxZS00ZmEwLTliMmMtMDMzNTNlOTNmMDRjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA4VDA1MDgwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM4M2ZjNzliNDIzMGM4Y2Y4Yzc1MjJkNjY0ZGRiYjM2NmVlNTU4OTAxZDcwMWViNmMyNGI5ZTYyNGEyNDI4MWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0._nWv5wdDyaE_xyyaxTALA1wekHAiu_X25aM0sQWSKfk)
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: