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

AdvancedCollectionView items are empty in gallery sample under Windows App SDK #513

Open
1 of 24 tasks
Arlodotexe opened this issue Sep 18, 2024 · 3 comments
Open
1 of 24 tasks
Labels
bug Something isn't working regression What was working is now broke sample app 🖼️

Comments

@Arlodotexe
Copy link
Member

Describe the bug

When running the gallery with the Wasdk head on the latest main commit, the 'AdvancedCollectionView' sample does not display items properly. The items are in the list, but the contents are empty.

Wasdk:
image

UWP:
image

Steps to reproduce

1. Clone the repo
2. Generate the gallery solution, include the Collections component and the wasdk multitarget/head.
3. Build and deploy the wasdk gallery 
4. Navigate to the 'AdvancedCollectionView' sample page and observe empty list items.

Expected behavior

Contents should render the same as they did before Wasdk 1.6 and the same as on UWP.

Screenshots

No response

Code Platform

  • UWP
  • WinAppSDK / WinUI 3
  • Web Assembly (WASM)
  • Android
  • iOS
  • MacOS
  • Linux / GTK

Windows Build Number

  • Windows 10 1809 (Build 17763)
  • Windows 10 1903 (Build 18362)
  • Windows 10 1909 (Build 18363)
  • Windows 10 2004 (Build 19041)
  • Windows 10 20H2 (Build 19042)
  • Windows 10 21H1 (Build 19043)
  • Windows 10 21H2 (Build 19044)
  • Windows 10 22H2 (Build 19045)
  • Windows 11 21H2 (Build 22000)
  • Other (specify)

Other Windows Build number

No response

App minimum and target SDK version

  • Windows 10, version 1809 (Build 17763)
  • Windows 10, version 1903 (Build 18362)
  • Windows 10, version 1909 (Build 18363)
  • Windows 10, version 2004 (Build 19041)
  • Windows 10, version 2104 (Build 20348)
  • Windows 11, version 22H2 (Build 22000)
  • Other (specify)

Other SDK version

No response

Visual Studio Version

No response

Visual Studio Build Number

No response

Device form factor

No response

Additional context

No response

Help us help you

Yes, I'd like to be assigned to work on this item.

@michael-hawker
Copy link
Member

Ah, I was just about to try doing some testing/work on the sample here. @Arlodotexe what's the easiest way to turn off the AOT stuff, but still test the expected result on WASDK? I imagine just a prop somewhere?

Is it just turn <PublishAot>true</PublishAot> to false?

@michael-hawker
Copy link
Member

michael-hawker commented Sep 20, 2024

Oh, I just noticed seeing Exception thrown: 'System.NotSupportedException' in WinRT.Runtime.dll in my output... then I ran again... and came back later and it seemed to be working?

image

Maybe it's a UI refresh/binding/notification issue in this scenario or something? Will have to see if I notice it again or not.

@michael-hawker
Copy link
Member

Ah, just noticed the PersonDataTemplate is using regular Binding instead of x:Bind, that may be related, maybe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working regression What was working is now broke sample app 🖼️
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants