Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No direction In the Drag event #10

Open
esolzDotnet opened this issue Apr 3, 2018 · 4 comments
Open

No direction In the Drag event #10

esolzDotnet opened this issue Apr 3, 2018 · 4 comments

Comments

@esolzDotnet
Copy link

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??

@robinmanuelthiel
Copy link
Owner

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
Copy link
Owner

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

@esolzDotnet
Copy link
Author

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
Copy link
Author

esolzDotnet commented May 23, 2018

@robinmanuelthiel hey any help here??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants