-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Windows] Fix crash using SwipeView inside CollectionView #6220
Conversation
bool CanMeasureContent(FrameworkElement frameworkElement) | ||
{ | ||
// Measure the SwipeControl before has loaded causes a crash on the first layout pass | ||
if (frameworkElement is SwipeControl swipeControl && !swipeControl.IsLoaded) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this exclusive to SwipeControl? Should this just check for a Control
that IsLoaded
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A far as I reviewed cannot Measure the SwipeControl with left or right items before is loaded, but, not happens in the rest of the controls.
Looking forward to this fix! Thanks Javier. |
What .net Version did this come into? As I am using .net 7.0.3 and I can still see the exception on Windows |
Description of Change
Fix crash using SwipeView inside CollectionView on Windows.
Issues Fixed
Fixes #6153
Fixes #6401