Skip to content

Add support for ThemeWalkResourceCache.BeginCachingThemeResources() #19381

Closed

Description

@MartinZikmund

What would you like to be added

Used in some locations of WinUI sources to cache the lookups in resource dictionaries for faster future access:

// From explorer.exe profiling, this spares ~2700 resource lookups for "AppBarButtonForegroundDisabled" when opening
// a new File Explorer window.
// There may be other VSM transitions where we can cache theme resources for some savings.
auto endOnExit = DXamlCore::GetCurrent()->GetHandle()->GetThemeWalkResourceCache()->BeginCachingThemeResources();

Why is this needed

No response

For which platform

No response

Anything else we need to know?

No response

Activity

  1. added
    area/performance 📈
    project/resources 🈷️
    on Jan 30, 2025
  2. MartinZikmund commented on Jan 30, 2025

    @MartinZikmund
    MemberAuthor

    Enable related code in AppBarButton.partial.mux.cs when implemented

  3. github-actions commented on Jan 31, 2026

    @github-actions
    Contributor

    Hey there — just a heads-up that this issue has been quiet for over a year. If there’s no update or comment in the next 10 days, it’ll be closed automatically. Feel free to remove the stale label or drop a note to keep it open.

  4. added
    stale
    on Jan 31, 2026
  5. removed
    stale
    on Jan 31, 2026
  6. github-actions commented on May 8, 2026

    @github-actions
    Contributor

    This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests.

  7. locked as resolved and limited conversation to collaborators on May 8, 2026
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

    area/performance 📈project/resources 🈷️

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions