Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ItemsSource breaks with AOT #9699

Closed
eduardobragaxz opened this issue Jun 5, 2024 · 3 comments
Closed

ItemsSource breaks with AOT #9699

eduardobragaxz opened this issue Jun 5, 2024 · 3 comments
Labels
area-AOT bug Something isn't working

Comments

@eduardobragaxz
Copy link

Describe the bug

  1. If you set the source for a collection control in XAML, you'll get an unhandled win32 exception;
  2. If you set the source in code it'll run until you try to modify the collection. You'll get the same exception then.

Steps to reproduce the bug

Repro

Expected behavior

No response

Screenshots

No response

NuGet package version

None

Windows version

Windows 11 (22H2): Build 22621

Additional context

1.6 experimental 1

@eduardobragaxz eduardobragaxz added the bug Something isn't working label Jun 5, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Jun 5, 2024
@eduardobragaxz
Copy link
Author

A workaround for controls that have an Items property is to add the items directly into it. Unfortunately, that's not the case of ItemsRepeater.

@codendone codendone added area-AOT and removed needs-triage Issue needs to be triaged by the area owners labels Jun 7, 2024
@Scottj1s
Copy link
Member

Scottj1s commented Jul 16, 2024

@eduardobragaxz thanks for reporting this. The issue has been fixed and will be available in the next preview release of the Microsoft.Windows.CsWinRT package.

cc: manodasanw

@eduardobragaxz
Copy link
Author

Nice.

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Jul 16, 2024
@codendone codendone removed the needs-triage Issue needs to be triaged by the area owners label Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-AOT bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants