Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

TapGesture does not fire if added to CollectionView[Bug] #15372

Open
LennoxP90 opened this issue May 13, 2022 · 1 comment
Open

TapGesture does not fire if added to CollectionView[Bug] #15372

LennoxP90 opened this issue May 13, 2022 · 1 comment
Labels
s/unverified New report that has yet to be verified t/bug 🐛

Comments

@LennoxP90
Copy link

Description

I would like to be able to have a click event fire when I tap the empty part of a CollectionView example the blue part in the image

https://imgur.com/a/VFrlOcB

Steps to Reproduce

  1. Create a CollectionView on a page
  2. Add a gesture recognizer to the base control
  3. Tap the control where there are no items

Expected Behavior

Expect the tap event to fire

Actual Behavior

Tap event does not fire

Basic Information

  • Version with issue: 5.0.0.2401
  • Last known good version: unkown
  • Platform Target Frameworks:
    • Android: 12.0

here is my xaml code

<CollectionView x:Name="MessagesCollectionView" 
                Grid.Row="1"
                BackgroundColor="Blue"
                ItemsUpdatingScrollMode="KeepScrollOffset"
		ItemsSource="{Binding Messages}"
                Scrolled="MessagesCollectionView_Scrolled"
                SelectedItem="{Binding SelectedMessage}"
                SelectionMode="Single"
                SelectionChangedCommand="{Binding SelectMessageCommand}"
                SelectionChangedCommandParameter="{Binding ., Source={x:Reference MessagesCollectionView}}" >
        <CollectionView.GestureRecognizers>
          <TapGestureRecognizer Command="{Binding MessagesCollectionClicked}" />
        </CollectionView.GestureRecognizers>
        <CollectionView.ItemTemplate>
          <DataTemplate>
            <controls:MessageSwipeView/>
          </DataTemplate>
        </CollectionView.ItemTemplate>
      </CollectionView>```
@LennoxP90 LennoxP90 added s/unverified New report that has yet to be verified t/bug 🐛 labels May 13, 2022
@LennoxP90
Copy link
Author

Is this intended functionality?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
s/unverified New report that has yet to be verified t/bug 🐛
Projects
None yet
Development

No branches or pull requests

1 participant