C# Class Lousy.Mon.CodeAnimator

Frontend for running arbitrary code after an animation.

Note: Specifying a duration using For() creates a dummy animation that lasts for the specified duration.

Inheritance: AbstractAnimator
Datei anzeigen Open project: ThatLousyGuy/Monolith Class Usage Examples

Protected Properties

Property Type Description
_delegate CodeDelegate

Public Methods

Method Description
After ( EventToken token ) : EventToken

Executes the user code after the animation animation represented by the specified token.

Note: This method produces a working EventToken

After ( EventToken token, double duration, OrSo timeType ) : EventToken

Executes the user code a specified duration after the animation represented by the specified token.

Note: This method produces a working EventToken

After ( double duration, OrSo timeType ) : EventToken

Executes the user code after a specified duration.

Note: This method produces a working EventToken

CodeAnimator ( CodeDelegate del ) : System
For ( double duration, OrSo timeType ) : IAnimator

Dummy method. Does nothing.

Now ( ) : EventToken

Runs the user code immediately

Protected Methods

Method Description
ApplyAnimationParams ( Timeline animation ) : void
CreateAnimation ( ) : Timeline

Private Methods

Method Description
CodeAnimator ( UIElement elem ) : System

Method Details

After() public method

Executes the user code after the animation animation represented by the specified token.

Note: This method produces a working EventToken

public After ( EventToken token ) : EventToken
token EventToken
return EventToken

After() public method

Executes the user code a specified duration after the animation represented by the specified token.

Note: This method produces a working EventToken

public After ( EventToken token, double duration, OrSo timeType ) : EventToken
token EventToken
duration double
timeType OrSo
return EventToken

After() public method

Executes the user code after a specified duration.

Note: This method produces a working EventToken

public After ( double duration, OrSo timeType ) : EventToken
duration double
timeType OrSo
return EventToken

ApplyAnimationParams() protected method

protected ApplyAnimationParams ( Timeline animation ) : void
animation Windows.UI.Xaml.Media.Animation.Timeline
return void

CodeAnimator() public method

public CodeAnimator ( CodeDelegate del ) : System
del CodeDelegate
return System

CreateAnimation() protected method

protected CreateAnimation ( ) : Timeline
return Windows.UI.Xaml.Media.Animation.Timeline

For() public method

Dummy method. Does nothing.
public For ( double duration, OrSo timeType ) : IAnimator
duration double
timeType OrSo
return IAnimator

Now() public method

Runs the user code immediately
public Now ( ) : EventToken
return EventToken

Property Details

_delegate protected_oe property

protected CodeDelegate _delegate
return CodeDelegate