Open sumowesley opened 2 weeks ago
I have very similar issue it might be connected. I have CollectionView
when using TouchBehavior
with LongPressCommand
on every item in collection, it disables CollectionView
selection functionality, setting IsEnabled="False"
on TouchBehavior
won't impact collection, basically TouchBehavior
blocks CollectionView
selection.
Would be nice if TouchBehavior
work together with other controls or IsEnabled
not only disabled commands but also touch capturing.
Only workaround that I found, put TouchBehavior
inside some Grid
on top, and when not needed, set Grid
visibility to False
.
I've just updated the Community.Toolkit.Maui, and the problem still exists on Mac Catalyst.
Is there an existing issue for this?
Did you read the "Reporting a bug" section on Contributing file?
Current Behavior
Two Buttons have commands associated with them. These buttons are not within the area controlled by the touch behavior. Once we've clicked in the area with the touch behavior (even if the behavior is disabled), the buttons no longer run the commands. You must move the cursor outside of the current application window and return, and the buttons now fire.
Expected Behavior
Buttons should be active at all times and not impacted by clicking within the area that has touch behaviour.
Steps To Reproduce
Link to public reproduction project repository
https://github.com/sumowesley/BaseMaui.git
Environment
Anything else?
iOS, Android and Windows work as expected.