Skip to content

I am unable to change the theme color of the program when AOT is released. #5389

Open
@BlameTwo

Description

@BlameTwo

Describe the bug

as the title suggests, I used Window.Content as FrameworkElement to change the program theme. I found that it couldn't be changed in the case of AOT. I haven't observed the detailed situation carefully yet

Steps to reproduce the bug

  1. Create App
  2. Write switch theme code
  3. Publish AOT
  4. Run

Expected behavior

No response

Screenshots

No response

NuGet package version

Windows App SDK 1.7.1: 1.7.250401001

Packaging type

Packaged (MSIX), Unpackaged

Windows version

Windows 11 version 24H2 (22621, October 2024 Update)

IDE

Visual Studio 2022-preview

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