maui icon indicating copy to clipboard operation
maui copied to clipboard

Button on a CollectionView's EmptyView is not clickable on Windows

Open KeithBoynton opened this issue 1 year ago • 2 comments

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

  1. Clone the attached demo repository and run it on Windows.
  2. Try to click the button that is inside the EmptyView (it will not work)
  3. Try to click the button below the view (it will work)
  4. Run it on iOS, MacCatalyst
  5. 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

KeithBoynton avatar Apr 18 '24 20:04 KeithBoynton

Verified this issue with Visual Studio17.10.0 Preview4(8.0.20 & 8.0.14), can repro on Windows platform.

jaosnz-rep avatar Apr 19 '24 08:04 jaosnz-rep

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…

josephlugo avatar Jun 30 '24 19:06 josephlugo

Yap just hitted this.

rmarinho avatar Sep 07 '24 00:09 rmarinho

Happening with me too.. even tried to use GestureRecognizers and Behaviors on ContentView of the EmptyView but no luck...

rodolfo-sousa avatar Sep 28 '24 00:09 rodolfo-sousa

Duplicate of #19609

rmarinho avatar Nov 20 '24 23:11 rmarinho