C# Класс SilverFlow.Controls.Extensions.AnimationExtensions

Useful Silverlight animation extensions
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

AnimateDoubleProperty() публичный статический Метод

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.
Результат System.Windows.Media.Animation.Storyboard

AnimateTranslateTransform() публичный статический Метод

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.
Результат void

FadeIn() публичный статический Метод

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.
Результат System.Windows.Media.Animation.Storyboard

FadeOut() публичный статический Метод

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.
Результат System.Windows.Media.Animation.Storyboard

MoveAndResize() публичный статический Метод

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.
Результат void

MoveAndResize() публичный статический Метод

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.
Результат void

MoveAndResize() публичный статический Метод

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.
Результат void