Skip to content

[Theme][Dsp] Theme Change to Light does not update DataTemplates sourced first (?) layer from app wide RessourcesDictionary #13

Open

Description

@DevTKSS

the color thats the MvuxGallery problem seems to be "SurfaceInverseBrush" on "ViewHeaderTemplate" defined in App whide DataTemplates ResourcesDictionary, which does not listen on ThemeChange not the one with the Casing Problem:

https://technischekonstruktion-my.sharepoint.com/:v:/g/personal/info_technische-konstruktion_com/EfRObBUVghVKk-LfTXlAQlIBjZgWceUHhgHdQB8VKUMR-g?e=tgq7Ky

But also it seems like I also found some HD problem :( again...
While HD showed the update correctly in Hot Reload this is not updated? so HD might not be able to update ResourceDictionary...
and intellisense accepted completion does not preserve the ms-appx:/// Path prefix...
but thats not solving the HD update. would have been to good to be true...

https://technischekonstruktion-my.sharepoint.com/:v:/g/personal/info_technische-konstruktion_com/EWRm1_nIGfxDrebGjTubg-IB9QkQu2cBzNg5dzI7p1i2FQ?e=tlcjmH

Dump question, but... The Background Property of for example grid or TextBox, do they support Themes? Seems like not? As soon as I delete the color in that, this UI part does again switch color...
Its always the first member layer coming from a ResourceDictionary, that does not update color?
image

thats surprising discovery... so if I would define any element below that, with a Background and put then this one above it... would my Grid then respect the Theme Change?

Note

Renamed the File according to microsoft/microsoft-ui-xaml#10571 but this did not solve the issue

Activity

  1. changed the title [-]Theme switching does not update if DataTemplate is in app wide RessourcesDictionary[/-] [+]Theme switching does not update DataTemplates sourced from app wide RessourcesDictionary[/+] on Jun 30, 2025
  2. added
    bug
    help wanted
    on Jul 1, 2025
  3. DevTKSS commented on Jul 2, 2025

    @DevTKSS
    OwnerAuthor
  4. moved this from To triage to Blocked by Issue in @DevTKSS Bug Trackeron Jul 22, 2025
  5. changed the title [-]Theme switching does not update DataTemplates sourced from app wide RessourcesDictionary[/-] [+][Theme][Dsp] Theme Change to Light does not update DataTemplates sourced first (?) layer from app wide RessourcesDictionary[/+] on Jul 24, 2025
  6. DevTKSS commented on Jul 24, 2025

    @DevTKSS
    OwnerAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bughelp wanted

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions