C# Class SilverFlow.Controls.Extensions.AnimationExtensions

Useful Silverlight animation extensions
Mostrar archivo Open project: Zoomicon/ZUI

Public Methods

Method Description
AnimateDoubleProperty ( this target, string propertyPath, double from, double to, double milliseconds, IEasingFunction easingFunction = null, EventHandler completed = null ) : System.Windows.Media.Animation.Storyboard

Animates specified property of the object.

AnimateTranslateTransform ( this target, System.Windows.Media.Animation.Storyboard storyboard, Point to, double seconds, IEasingFunction easingFunction = null ) : void

Animates the translate transform object, responsible for displacement of the target.

FadeIn ( this target, double milliseconds, EventHandler completed = null ) : System.Windows.Media.Animation.Storyboard

Fade in the specified object.

FadeOut ( this target, double milliseconds, EventHandler completed = null ) : System.Windows.Media.Animation.Storyboard

Fade out the specified object.

MoveAndResize ( this target, Point position, double width, double height, double milliseconds, EventHandler completed = null ) : void

Moves and resizes the object.

MoveAndResize ( this target, Rect bounds, double milliseconds, EventHandler completed = null ) : void

Moves and resizes the object.

MoveAndResize ( this target, System.Windows.Media.Animation.Storyboard storyboard, Point position, double width, double height, double milliseconds ) : void

Moves and resizes the object.

Method Details

AnimateDoubleProperty() public static method

Animates specified property of the object.
public static AnimateDoubleProperty ( this target, string propertyPath, double from, double to, double milliseconds, IEasingFunction easingFunction = null, EventHandler completed = null ) : System.Windows.Media.Animation.Storyboard
target this The target object to animate.
propertyPath string Property path, e.g. Canvas.Top.
from double Animation's starting value.
to double Animation's ending value.
milliseconds double Duration of the animation in milliseconds.
easingFunction IEasingFunction Easing function applied to the animation.
completed EventHandler Event handler called when animation completed.
return System.Windows.Media.Animation.Storyboard

AnimateTranslateTransform() public static method

Animates the translate transform object, responsible for displacement of the target.
public static AnimateTranslateTransform ( this target, System.Windows.Media.Animation.Storyboard storyboard, Point to, double seconds, IEasingFunction easingFunction = null ) : void
target this The target object.
storyboard System.Windows.Media.Animation.Storyboard The storyboard.
to Point Animation's ending value.
seconds double Duration of the animation in seconds.
easingFunction IEasingFunction Easing function applied to the animation.
return void

FadeIn() public static method

Fade in the specified object.
public static FadeIn ( this target, double milliseconds, EventHandler completed = null ) : System.Windows.Media.Animation.Storyboard
target this The target object.
milliseconds double Duration of the animation in milliseconds.
completed EventHandler Event handler called when animation completed.
return System.Windows.Media.Animation.Storyboard

FadeOut() public static method

Fade out the specified object.
public static FadeOut ( this target, double milliseconds, EventHandler completed = null ) : System.Windows.Media.Animation.Storyboard
target this The target object.
milliseconds double Duration of the animation in milliseconds.
completed EventHandler Event handler called when animation completed.
return System.Windows.Media.Animation.Storyboard

MoveAndResize() public static method

Moves and resizes the object.
public static MoveAndResize ( this target, Point position, double width, double height, double milliseconds, EventHandler completed = null ) : void
target this The target object.
position Point Ending position.
width double New width.
height double New height.
milliseconds double Duration of the animation in milliseconds.
completed EventHandler Event handler called when animation completed.
return void

MoveAndResize() public static method

Moves and resizes the object.
public static MoveAndResize ( this target, Rect bounds, double milliseconds, EventHandler completed = null ) : void
target this The target object.
bounds System.Windows.Rect
milliseconds double Duration of the animation in milliseconds.
completed EventHandler Event handler called when animation completed.
return void

MoveAndResize() public static method

Moves and resizes the object.
public static MoveAndResize ( this target, System.Windows.Media.Animation.Storyboard storyboard, Point position, double width, double height, double milliseconds ) : void
target this The target object.
storyboard System.Windows.Media.Animation.Storyboard The storyboard.
position Point Ending position.
width double New width.
height double New height.
milliseconds double Duration of the animation in milliseconds.
return void