StoryboardTransition

public class StoryboardTransition;

Description

A StoryboardTransition object is created at runtime when a transition in a storyboard is invoked. This object can be used to infer information about the transition, such as the canvas controllers involved, the direction of the transition, whether the transition is animated, as well as the invokedHook that triggered the transition.

Properties
animated Is the transition animated?
direction The direction of the transition.
invokedHook The StoryboardHook that triggered this transition.
presentationMode The presentation mode of the presented canvas controller.
userIdentifier The user identifier associated with the transition.
Methods
DestinationCanvasController The transition's destination canvas controller.
DestinationCanvasController<T> The transition's destination canvas controller, if it is of type T.
SourceCanvasController The transition's source canvas controller.
SourceCanvasController<T> The transition's source canvas controller, if it is of type T.

animated

public readonly bool animated;

Description

Is the transition animated?


direction

public readonly StoryboardTransitionDirection direction;

Description

The direction of the transition.


invokedHook

public readonly StoryboardHook invokedHook;

Description

The StoryboardHook that triggered this transition.

If the transition was invoked manually with CanvasController.PerformTransitionWithIdentifier, this will be null.


presentationMode

public readonly CanvasControllerPresentationMode presentationMode;

Description

The presentation mode of the presented canvas controller.


userIdentifier

public readonly string userIdentifier;

Description

The user identifier associated with the transition.


DestinationCanvasController

public CanvasController DestinationCanvasController();

Description

The transition's destination canvas controller.


DestinationCanvasController<T>

public T DestinationCanvasController<T>() where T : CanvasController;

Parameters

Name Description
T The type to cast the destination canvas controller to.

Description

The transition's destination canvas controller, if it is of type T.


SourceCanvasController

public CanvasController SourceCanvasController();

Description

The transition's source canvas controller.


SourceCanvasController<T>

public T SourceCanvasController<T>() where T : CanvasController;

Parameters

Name Description
T The type to cast the source canvas controller to.

Description

The transition's source canvas controller, if it is of type T.