C# Class Lousy.Mon.EventToken

Represents an animation created using Monolith. Used to chain animations together.
Show file Open project: ThatLousyGuy/Monolith Class Usage Examples

Protected Properties

Property Type Description
_Animation Windows.UI.Xaml.Media.Animation.Timeline
_Children TimeSpan?>.Dictionary

Public Methods

Method Description
AddChildAnimator ( IAnimator child ) : void

Adds a child animation to be activated when the current EventToken's animation completes.

AddChildAnimator ( IAnimator child, System.TimeSpan timespan ) : void

Adds a child animation to be activated after the specified duration after current EventToken's animation completes.

EventToken ( Timeline animation, Storyboard storyboard ) : System
PassOn ( EventToken successor ) : EventToken

Passes on child animations to the specified successor. The current EventToken's child animations are activated by the successor's completion events. Used in conjunction with EventToken.PlaceHolderToken for creating animations out of order.

PlaceholderToken ( ) : EventToken

Factory method for creating an empty event token. Used in conjunction with PassOn for creating animations out of order.

Protected Methods

Method Description
AnimationEventHandler ( object sender, object e ) : void
EventToken ( ) : System

Method Details

AddChildAnimator() public method

Adds a child animation to be activated when the current EventToken's animation completes.
public AddChildAnimator ( IAnimator child ) : void
child IAnimator
return void

AddChildAnimator() public method

Adds a child animation to be activated after the specified duration after current EventToken's animation completes.
public AddChildAnimator ( IAnimator child, System.TimeSpan timespan ) : void
child IAnimator
timespan System.TimeSpan
return void

AnimationEventHandler() protected method

protected AnimationEventHandler ( object sender, object e ) : void
sender object
e object
return void

EventToken() protected method

protected EventToken ( ) : System
return System

EventToken() public method

public EventToken ( Timeline animation, Storyboard storyboard ) : System
animation Windows.UI.Xaml.Media.Animation.Timeline
storyboard Windows.UI.Xaml.Media.Animation.Storyboard
return System

PassOn() public method

Passes on child animations to the specified successor. The current EventToken's child animations are activated by the successor's completion events. Used in conjunction with EventToken.PlaceHolderToken for creating animations out of order.
public PassOn ( EventToken successor ) : EventToken
successor EventToken
return EventToken

PlaceholderToken() public static method

Factory method for creating an empty event token. Used in conjunction with PassOn for creating animations out of order.
public static PlaceholderToken ( ) : EventToken
return EventToken

Property Details

_Animation protected property

protected Timeline,Windows.UI.Xaml.Media.Animation _Animation
return Windows.UI.Xaml.Media.Animation.Timeline

_Children protected property

protected Dictionary _Children
return TimeSpan?>.Dictionary