TransitionManager.SetTransition 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
SetTransition(Scene, Transition) |
Sets a specific transition to occur when the given scene is entered. |
SetTransition(Scene, Scene, Transition) |
Sets a specific transition to occur when the given pair of scenes is exited/entered. |
SetTransition(Scene, Transition)
Sets a specific transition to occur when the given scene is entered.
[Android.Runtime.Register("setTransition", "(Landroid/transition/Scene;Landroid/transition/Transition;)V", "GetSetTransition_Landroid_transition_Scene_Landroid_transition_Transition_Handler")]
public virtual void SetTransition (Android.Transitions.Scene? scene, Android.Transitions.Transition? transition);
[<Android.Runtime.Register("setTransition", "(Landroid/transition/Scene;Landroid/transition/Transition;)V", "GetSetTransition_Landroid_transition_Scene_Landroid_transition_Transition_Handler")>]
abstract member SetTransition : Android.Transitions.Scene * Android.Transitions.Transition -> unit
override this.SetTransition : Android.Transitions.Scene * Android.Transitions.Transition -> unit
Parameters
- scene
- Scene
The scene which, when applied, will cause the given transition to run.
- transition
- Transition
The transition that will play when the given scene is entered. A value of null will result in the default behavior of using the default transition instead.
- Attributes
Remarks
Sets a specific transition to occur when the given scene is entered.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
SetTransition(Scene, Scene, Transition)
Sets a specific transition to occur when the given pair of scenes is exited/entered.
[Android.Runtime.Register("setTransition", "(Landroid/transition/Scene;Landroid/transition/Scene;Landroid/transition/Transition;)V", "GetSetTransition_Landroid_transition_Scene_Landroid_transition_Scene_Landroid_transition_Transition_Handler")]
public virtual void SetTransition (Android.Transitions.Scene? fromScene, Android.Transitions.Scene? toScene, Android.Transitions.Transition? transition);
[<Android.Runtime.Register("setTransition", "(Landroid/transition/Scene;Landroid/transition/Scene;Landroid/transition/Transition;)V", "GetSetTransition_Landroid_transition_Scene_Landroid_transition_Scene_Landroid_transition_Transition_Handler")>]
abstract member SetTransition : Android.Transitions.Scene * Android.Transitions.Scene * Android.Transitions.Transition -> unit
override this.SetTransition : Android.Transitions.Scene * Android.Transitions.Scene * Android.Transitions.Transition -> unit
Parameters
- fromScene
- Scene
The scene being exited when the given transition will be run
- toScene
- Scene
The scene being entered when the given transition will be run
- transition
- Transition
The transition that will play when the given scene is entered. A value of null will result in the default behavior of using the default transition instead.
- Attributes
Remarks
Sets a specific transition to occur when the given pair of scenes is exited/entered.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.