Issue
I wonder how to Animate opacity of elements visible on screen. For example for Entry I got to this:
this.Animate("", d =>
{
Debug.WriteLine("anim:" + d);
Username.Opacity = (AnimationTime - d) / AnimationTime;
}, 0, AnimationTime);
but I wonder if there is easier way. Unfortunately Animate method is poorly documented.
Solution
You could try the FadeTo extension method :-
https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/animation/simple#fading
There are other animations that can be applied too :-
https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/animation/simple
Answered By - Paul Diston Answer Checked By - Robin (PHPFixing Admin)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.