AndreiMisiukevich / TouchEffect

UI-responsive touch effects for Xamarin.Forms
MIT License
195 stars 33 forks source link

Touch effect after X milliseconds or after completed event #85

Closed leonardbarbu closed 4 years ago

leonardbarbu commented 4 years ago

Hello, It is somehow possible to see the touch effect only if it is not cancelled within the first X milliseconds? Or it is possible to see the touch effect only if the completed event is fired?

I am trying to have a ListView feeling using a StackLayout with BindableLayout ItemsSource because the StackLayout is more performant on scrolling. Thanks.

AndreiMisiukevich commented 4 years ago

Hi, for now, such behavior can be achieved only by the user's code. You can observe "State" property and change UI.

For "NativeAnimation" it's impossible.

leonardbarbu commented 4 years ago

I have tried in code behind in the Completed event to use "SetNativeAnimation" with True for the sender (a Frame) and after to set the Status or the State for that sender but didn't succeeded to see the effect. Thanks for clarification.