C# 클래스 SilverFlow.Controls.Extensions.AnimationExtensions

Useful Silverlight animation extensions
파일 보기 프로젝트 열기: Zoomicon/ZUI

공개 메소드들

메소드 설명
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