microsoft / microsoft/microsoft-ui-xaml

SemanticZoom does not display anything when used with Native AOT compilation

Open
#11,149 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-AOT area-SemanticZoom bug
Dominant language
C++
Stars
8.4k
Forks
942
Avg merge
2d 7h
Merged PRs (30d)
105

Description

Describe the bug

When using .NET with Native AOT for a WinUI 3 or UWP application, the SemanticZoom control fails to display its content. You find same problem in SemanticZoom with AOT?

Why is this important?

SemanticZoom is one of a key control in WinUI, without AOT support, developers cannot adopt Native AOT in many essential app scenarios.

Steps to reproduce the bug

Example Code to Reproduce:original-sound-hq-player
I'm guessing it related with cswinrt.

Actual behavior

No response

Expected behavior

No response

Screenshots
Image
NuGet package version

2.1.3

Windows version

Windows 11 (24H2): Build 26100

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with the original-sound-hq-player AlbumPage.xaml example under Native AOT, then review the SemanticZoom control and the linked discussion about AOT. Done means SemanticZoom displays its content correctly in a WinUI 3 or UWP application compiled with Native AOT.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, csharp
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.