Skip to content

The context menu in AutoSuggestBox doen't update text colors when the system theme changes #10485

@liraline

Description

@liraline

Describe the bug

I'm currently using WinAppSDK version 1.6.241106002, however, this bug can also be reproduced in the WinUI 3 Gallery app.

My system is set to dark theme, and this is the text color of the context menu in AutoSuggestBox (right click on typing area to open the context menu):
Image

When changing the system theme to light, the text colors aren't updated to match the new theme, as seen below:
Image

This bug can also be reproduced in the TextBox component.

Steps to reproduce the bug

  1. Create an AutoSuggestBox.
  2. Type something in it.
  3. Right-click on the typing area to open the context menu (colors will match the system theme).
  4. Change the system theme.
  5. Right-click on the typing area again to open the context menu (colors will still correspond to the previous theme).

Expected behavior

Text colors should be updated correctly to match theme changes.

Screenshots

No response

NuGet package version

None

Windows version

Windows 11 (23H2): Build 22631

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions