Closed erossini closed 5 months ago
I put together a project as an example of the issue. You can find the project here https://github.com/erossini/MauiCardLayout
@erossini from what I see PanGesture is executed and cards disappear and appear. TapGesture is executed as well and card flips. As for SwipeGesture, it is a known .NET MAUI issue. You can see that CardView (CardLayout) already has a PanGesture: var panGesture = new PanGestureRecognizer(); panGesture.PanUpdated += PanGesture_PanUpdated; GestureRecognizers.Add(panGesture);
Updated sample with some animations and tweaks
Hi, I'm looking at your code for the card stack layout and it is almost what I'm looking for 😁
Basically, I'm learning MAUI and I want to create an app with flash cards. So, I arrived at the point where I display the cards.
Now, the problems I'm facing are:
CardView
I tried to change theContent
but I get an error (Java.Lang.IllegalStateException: 'The specified child already has a parent. You must call removeView() on the child's parent first.'
, different in Windows)CardView
aTapGesture
, theSwipeGesture
orPanGesture
are not effected the view, although they are fired.Do you have any advice or code for that? Thank you in advance, Enrico