Метод | Описание | |
---|---|---|
CrossFade ( |
Cross fades from one element to another. Make sure the element you're fading to is at zero opacity before calling this method. |
|
DoubleAnimate ( |
Animates the given element.
|
|
Fade ( |
Animates the opacity property on the given element.
|
|
Fade ( |
Animates the opacity property on the given element.
|
|
FadeIn ( |
Fades the given element in from it's current opacity to 100% opacity.
|
|
FadeOut ( |
Fades the given element in from it's current opacity to 0% opacity.
|
|
Move ( |
Moves an element from one point to another.
|
|
Rotate ( |
Rotates an element.
|
Метод | Описание | |
---|---|---|
CreateDoubleAnimation ( double fromValue, double toValue, double seconds, IEasingFunction easing ) : System.Windows.Media.Animation.DoubleAnimation | ||
CreateStoryboard ( |
||
InsertAnimation ( System.Windows.Media.Animation.Storyboard storyboard, |
||
RegisterStoryboard ( System.Windows.Media.Animation.Storyboard storyboard ) : void |
public static CrossFade ( |
||
from | The element to fade from. | |
to | The element to fade to. | |
seconds | double | The duration in seconds. |
easing | IEasingFunction | The easing function to apply to the animation (Null if not required). |
callback | System.Action | Method to execute when the animation is complete. |
Результат | void |
public static DoubleAnimate ( |
||
element | The element to animate. | |
fromValue | double | The starting property value. |
toValue | double | Te ending property value. |
seconds | double | The duration in seconds. |
propertyPath | string | The path to the property to animate (eg. "Opacity" or "(Canvas.Left)"). |
easing | IEasingFunction | The easing function to apply to the animation (Null if not required). |
callback | System.Action | Method to execute when the animation is complete. |
Результат | System.Windows.Media.Animation.DoubleAnimation |
public static Fade ( |
||
element | The element to animate. | |
fromOpacity | double | The starting opacity value (0-1). |
toOpacity | double | The ending opacity value (0-1). |
seconds | double | The duration in seconds. |
easing | IEasingFunction | |
callback | System.Action | Method to execute when the animation is complete. |
Результат | void |
public static Fade ( |
||
element | The element to animate. | |
fadeInOut | bool | Flag indicating if the element should be faded in (true) or out (false). |
seconds | double | The duration in seconds. |
easing | IEasingFunction | The easing function to apply to the animation (Null if not required). |
callback | System.Action | Method to execute when the animation is complete. |
Результат | void |
public static FadeIn ( |
||
element | The element to animate. | |
seconds | double | The duration in seconds. |
easing | IEasingFunction | The easing function to apply to the animation (Null if not required). |
callback | System.Action | Method to execute when the animation is complete. |
Результат | void |
public static FadeOut ( |
||
element | The element to animate. | |
seconds | double | The duration in seconds. |
easing | IEasingFunction | The easing function to apply to the animation (Null if not required). |
callback | System.Action | Method to execute when the animation is complete. |
Результат | void |
public static Move ( |
||
element | The element to animate. | |
start | Point | The X,Y coordinates for the start of the animation. |
end | Point | The X,Y coordinates for the end of the animation. |
seconds | double | The duration in seconds. |
easing | IEasingFunction | The easing function to apply to the animation (Null if not required). |
callback | System.Action | Method to execute when the animation is complete. |
Результат |
public static Rotate ( |
||
element | The element to animate. | |
toAngle | double | The angle to rotate to. |
seconds | double | The duration in seconds. |
easing | IEasingFunction | The easing function to apply to the animation (Null if not required). |
callback | System.Action | Method to execute when the animation is complete. |
Результат | void |