swipecards
swipecards copied to clipboard
No direction In the Drag event
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??
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
}
}
Or do you need the information while the user is swiping?
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
@robinmanuelthiel hey any help here??