swipecards icon indicating copy to clipboard operation
swipecards copied to clipboard

No direction In the Drag event

Open esolzDotnet opened this issue 6 years ago • 4 comments

I need to show Like when the user will swipe the card to the right side(like tinder). For this i have used the Dragged event.But i can't find any direction in this event?

What is the solution here??

esolzDotnet avatar Apr 03 '18 13:04 esolzDotnet

Once the card got dragged and released, the SwipedEvent gets fired, which contains SwipedEventArgs that indicate, in which direction the user swiped.

void CardStackView_Swiped(object sender, Controls.Arguments.SwipedEventArgs e)
{
    if (e. Direction == SwipeDirection.Left)
    {
        // Swiped to the left
    }
}

robinmanuelthiel avatar Apr 03 '18 13:04 robinmanuelthiel

Or do you need the information while the user is swiping?

robinmanuelthiel avatar Apr 03 '18 13:04 robinmanuelthiel

yes i need to add a badge like the tinder one. so i need to know the direction when the user start to drag the card

esolzDotnet avatar Apr 16 '18 11:04 esolzDotnet

@robinmanuelthiel hey any help here??

esolzDotnet avatar May 23 '18 09:05 esolzDotnet