UIView.AnimateAsync(Double, Action) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Animates the property changes that take place in the specified animation
as an asynchronous operation.
public static System.Threading.Tasks.Task<bool> AnimateAsync (double duration, Action animation);
static member AnimateAsync : double * Action -> System.Threading.Tasks.Task<bool>
Parameters
- duration
- Double
Duration in seconds for the animation.
- animation
- Action
Code containing the changes that you will apply to your view.
Returns
Indicates whether the animation ran to completion or not.
Remarks
The use of this method is discouraged. Application developers should prefer to use the UIViewPropertyAnimator class to animate UIViews.