C# Class System.Windows.Media.Glitz.AnimationEffect

Represents an animation that can be associated with an element.
Inheritance: System.Windows.FrameworkElement, IAttachedObject, IProceduralAnimationFactory
ファイルを表示 Open project: nikhilk/silverlightfx

Private Properties

Property Type Description
IAttachedObject void
IAttachedObject void
IProceduralAnimationFactory ProceduralAnimation
OnAnimationStopped void

Public Methods

Method Description
PlayEffect ( AnimationEffectDirection direction ) : void

Indicates that the effect should start playing.

StopEffect ( ) : void

Indicates that the effect should complete itself now and stop.

Protected Methods

Method Description
AnimationEffect ( ) : System

Initializes an AnimationEffect instance.

CreateEffectAnimation ( AnimationEffectDirection direction ) : ProceduralAnimation

Creates the animation representing the effect.

GetEffectiveInterpolation ( ) : TweenInterpolation

Gets the effective interpolation to use for animations created by the effect.

GetTarget ( ) : FrameworkElement

Gets the target of the effect. This resolves the TargetName property value into an actual object if one has been specified.

OnAttach ( ) : void
OnCompleted ( ) : void

Indicates that the effect has completed playing.

OnDetach ( ) : void
OnStarting ( ) : void

Indicates that the effect is about to be played.

Private Methods

Method Description
IAttachedObject ( ) : void
IAttachedObject ( DependencyObject associatedObject ) : void
IProceduralAnimationFactory ( ) : ProceduralAnimation
OnAnimationStopped ( object sender, EventArgs e ) : void

Method Details

AnimationEffect() protected method

Initializes an AnimationEffect instance.
protected AnimationEffect ( ) : System
return System

CreateEffectAnimation() protected abstract method

Creates the animation representing the effect.
protected abstract CreateEffectAnimation ( AnimationEffectDirection direction ) : ProceduralAnimation
direction AnimationEffectDirection The direction of the animation.
return ProceduralAnimation

GetEffectiveInterpolation() protected method

Gets the effective interpolation to use for animations created by the effect.
protected GetEffectiveInterpolation ( ) : TweenInterpolation
return TweenInterpolation

GetTarget() protected method

Gets the target of the effect. This resolves the TargetName property value into an actual object if one has been specified.
protected GetTarget ( ) : FrameworkElement
return System.Windows.FrameworkElement

OnAttach() protected method

protected OnAttach ( ) : void
return void

OnCompleted() protected method

Indicates that the effect has completed playing.
protected OnCompleted ( ) : void
return void

OnDetach() protected method

protected OnDetach ( ) : void
return void

OnStarting() protected method

Indicates that the effect is about to be played.
protected OnStarting ( ) : void
return void

PlayEffect() public method

Indicates that the effect should start playing.
public PlayEffect ( AnimationEffectDirection direction ) : void
direction AnimationEffectDirection Indicates whether to play the direction in forward direction or reverse direction.
return void

StopEffect() public method

Indicates that the effect should complete itself now and stop.
public StopEffect ( ) : void
return void