Skip to content

Holding movement threshold #19112

Answered by morning4coffe-dev
HakanL asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @HakanL,

Thank you for your question! I don't think we/WinUI have a feature like this directly, but you can work around it using the OnPointerPressed, OnPointerMoved, and OnPointerReleased methods. You can start a timer when the button is pressed and stop it if the pointer is released or moves outside a certain threshold. Let me know if this helps!

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@HakanL
Comment options

@morning4coffe-dev
Comment options

@HakanL
Comment options

@MartinZikmund
Comment options

@HakanL
Comment options

Answer selected by morning4coffe-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants