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
CommunityToolkit.WinUI.UI.FrameworkElementExtensions.FindChild throw System.InvalidCastException when a view contains CollectionView
Steps to reproduce
create a view with ListView
create CollectionView with CollectionView.Source = IEnumerable<T> where T is interface;
ListView.ItemsSource bind to CollectionView.View
try to find any FrameworkElement on the view
Expected behavior
FindChild must return found element or null if view doesn't contain it.
Describe the bug
CommunityToolkit.WinUI.UI.FrameworkElementExtensions.FindChild throw System.InvalidCastException when a view contains CollectionView
Steps to reproduce
Expected behavior
FindChild must return found element or null if view doesn't contain it.
Screenshots
No response
Code Platform
Windows Build Number
Other Windows Build number
No response
App minimum and target SDK version
Other SDK version
No response
Visual Studio Version
No response
Visual Studio Build Number
No response
Device form factor
No response
Additional context
Test example
CollectionViewTest
Help us help you
Yes, I'd like to be assigned to work on this item.
Tasks
The text was updated successfully, but these errors were encountered: