You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
WinAppSDK 1.6.240821007-preview2 crashes (Unexpected type for enumerator) when iterating over ListView.Items if the ListView.ItemsSource is set via CollectionViewSource.
To Reproduce
Sample to reproduce the crash:
varitems=newList<string>{"Item 1","Item 2"};varsource=newCollectionViewSource(){Source=items};TheList.ItemsSource=source.View;
...// Invoked via a button or somethingforeach(variteminTheList.Items){// Crash}
TheList is a simple ListView control.
Expected behavior
It shouldn't crash/throw an exception
Describe the bug
WinAppSDK 1.6.240821007-preview2 crashes (Unexpected type for enumerator) when iterating over
ListView.Items
if theListView.ItemsSource
is set viaCollectionViewSource
.To Reproduce
Sample to reproduce the crash:
TheList
is a simpleListView
control.Expected behavior
It shouldn't crash/throw an exception
Version Info
Additional context
This is blocking WinAppSDK 1.6 version bump for .NET MAUI.
The text was updated successfully, but these errors were encountered: