Open
Description
Description
When changing the app theme from Light to Dark (or vice versa), the text highlighting in the context menu does not update correctly. It appears that the context menu text uses static resources, causing it to retain the previous theme's colors until the app is restarted.
Steps to Reproduce
- Clone the repository.
- Switch to and run the
main
branch. - Go to Settings and change the theme (e.g., from Light to Dark or Dark to Light).
- Navigate to any component where you can write or select text (e.g., RichTextBox).
- Right-click to open the context menu and observe the text highlighting.
Expected Behavior
The text in the context menu should correctly update to match the selected theme.
Actual Behavior
The context menu text appears to use static resources, preventing it from updating dynamically when the theme changes.
Screenshots
Additional Context
- This issue does not appear in version 2.5.1 but is present in the
main
branch. - It may be related to the WindowsAppSDK version update (Update WinAppSDK Version and Remove WebView2 Workaround #1729).
Activity