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

Shell flyout menu not selected item with ripple effect #13253

Open
1 of 2 tasks
ghost opened this issue Dec 29, 2020 · 2 comments
Open
1 of 2 tasks

Shell flyout menu not selected item with ripple effect #13253

ghost opened this issue Dec 29, 2020 · 2 comments
Labels
s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. s/unverified New report that has yet to be verified t/bug 🐛

Comments

@ghost
Copy link

ghost commented Dec 29, 2020

Description

Hi, I would like to ask if it is possible to apply the ripple effect to Shell FlyoutItem. The ripple effect works, but the menu item does not work, you cannot change the page. Without ripple effect, the transition to the page works. Advise if I'm making a mistake somewhere. I will be happy for any advice.

Steps to Reproduce

  1. Create a Shell project
  2. Create ItemTemplate in AppShell
  3. Add a ripple effect to the DataTemplate
    xct:TouchEffect.NativeAnimationColor="Red"
    xct:TouchEffect.NativeAnimation="True"

<FlyoutItem Title="Item 1"> <Shell.ItemTemplate> <DataTemplate> <ContentView> <Grid HeightRequest="50" xct:TouchEffect.NativeAnimation="True" xct:TouchEffect.NativeAnimationColor="Red"> </Grid> </ContentView> </DataTemplate> </Shell.ItemTemplate> <ShellContent Route="HomePage" ContentTemplate="{DataTemplate local:HomePage}" /> </FlyoutItem>

Expected Behavior

Ripple effect and go to the selection page from the shell menu.

Actual Behavior

The ripple effect works, switching to another page does not work when selecting from the menu.

Platforms

  • Android
  • iOS

Basic Information

Workaround

Reproduction imagery

ezgif com-gif-maker (1)

Reproduction Link

@hartez
Copy link
Contributor

hartez commented Jan 8, 2021

I think this is a touch effect issue, not a problem with the flyout - waiting for confirmation on xamarin/XamarinCommunityToolkit#707.

@hartez hartez added the s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. label Jan 8, 2021
@isness
Copy link

isness commented Aug 3, 2021

I believe adding a TapGestureRecongizer in grid might help with this case, it's just that I don't know which command to bind to.

Has anyone found a workaround? Is it even possible to implement any touch effects on flyouts?

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. s/unverified New report that has yet to be verified t/bug 🐛
Projects
None yet
Development

No branches or pull requests

2 participants