UIView.Transition 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.
Overloads
Transition(UIView, Double, UIViewAnimationOptions, Action, Action) |
Specifies a transition animation on the specified collection view. |
Transition(UIView, UIView, Double, UIViewAnimationOptions, Action) |
Specifies a transition animation on the specified collection view. |
Transition(UIView, Double, UIViewAnimationOptions, Action, Action)
Specifies a transition animation on the specified collection view.
[Foundation.Advice("Use the *Notify method that has 'UICompletionHandler completion' parameter, the 'bool' will tell you if the operation finished.")]
public static void Transition (UIKit.UIView withView, double duration, UIKit.UIViewAnimationOptions options, Action animation, Action completion);
static member Transition : UIKit.UIView * double * UIKit.UIViewAnimationOptions * Action * Action -> unit
Parameters
- withView
- UIView
The view that performs the transition.
- duration
- Double
Duration set for transition animation.
- options
- UIViewAnimationOptions
A mask of options defining animations performance.
- animation
- Action
Action object containing changes to make to the specified view.
- completion
- Action
Action object for execution when the animation sequence completes.
- Attributes
Remarks
The use of this method is discouraged. Application developers should prefer to use the UIViewPropertyAnimator class to animate UIViews.
Applies to
Transition(UIView, UIView, Double, UIViewAnimationOptions, Action)
Specifies a transition animation on the specified collection view.
[Foundation.Advice("Use the *Notify method that has 'UICompletionHandler completion' parameter, the 'bool' will tell you if the operation finished.")]
public static void Transition (UIKit.UIView fromView, UIKit.UIView toView, double duration, UIKit.UIViewAnimationOptions options, Action completion);
static member Transition : UIKit.UIView * UIKit.UIView * double * UIKit.UIViewAnimationOptions * Action -> unit
Parameters
- fromView
- UIView
The initial view.
- toView
- UIView
The final view.
- duration
- Double
The duration, in seconds, of the animation.
- options
- UIViewAnimationOptions
A mask of options to be used with the animation.
- completion
- Action
An action to be executed at the end of the animation.
- Attributes
Remarks
The use of this method is discouraged. Application developers should prefer to use the UIViewPropertyAnimator class to animate UIViews.