SwipeView erroneusly triggers SelectionChangedCommand in CollectionView on swiping gesture. (Was not the case with Xamarin.Forms) #22711
Labels
area-controls-swipeview
SwipeView
migration-compatibility
Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert
platform/android 🤖
platform/iOS 🍎
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
Hello, I have found a migration issue when using
SwipeView
s nested in aCollectionView
. TheSelectionChangedCommand
is fired during the swiping operations. This was not the intended behavior with Xamarin.Forms . In fact, the command is executed both on the opening gesture and when the user closes the SwipeView (either by swiping it back or by tapping on the row). The command should not be invoked in none of those scenarios.Repro provides both the .NET MAUI and the Xamarin.Forms solutions.
Steps to Reproduce
No response
Link to public reproduction project repository
https://github.com/inimirpaz/maui_issues/tree/swipeview_tap_issue
Version with bug
8.0.40 SR5
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: