Button on a CollectionView's EmptyView is not clickable on Windows
Description
If you put a Button on an EmptyView within a CollectionView it is not Clickable on Windows. It works fine in iOS and MacCatalyst. I haven't tested it on Android but I imagine it probably works there too.
Steps to Reproduce
- Clone the attached demo repository and run it on Windows.
- Try to click the button that is inside the EmptyView (it will not work)
- Try to click the button below the view (it will work)
- Run it on iOS, MacCatalyst
- Try to click the button that is inside the EmptyView (it WILL work)
Link to public reproduction project repository
https://bitbucket.org/KeithBoynton/non-clickable-button/src/master/
Version with bug
8.0.20 SR4
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
net8.0-windows10.0.19041.0
Did you find any workaround?
No
Relevant log output
No response
Verified this issue with Visual Studio17.10.0 Preview4(8.0.20 & 8.0.14), can repro on Windows platform.
Also, try adding:
<Label.FormattedText>
<FormattedString>
<Span Text="Nothing to show here... " />
<Span Text="yet" TextColor="Blue">
<Span.GestureRecognizers>
<TapGestureRecognizer
Tapped="OnYetLabelTapped" />
</Span.GestureRecognizers>
</Span>
</FormattedString>
</Label.FormattedText>
The Tapped event won’t happen either…
Yap just hitted this.
Happening with me too.. even tried to use GestureRecognizers and Behaviors on ContentView of the EmptyView but no luck...
Duplicate of #19609