New to Telerik UI for WPFStart a free 30-day trial

Fade animation for showing/hiding elements.

Definition

Constructors

Initializes a new instance of the SlideAnimation class.

C#
public SlideAnimation()

Properties

Orientation

Orientation

Gets or sets a value, describing the orientation of the animation.

C#
public Orientation Orientation { get; set; }

Gets or sets a value that describes the amount of pixels to be animated.

C#
public double PixelsToAnimate { get; set; }

Gets or sets the direction (side) that the object will appear from or slide out to.

C#
public SlideMode SlideMode { get; set; }

Methods

Creates the slide animation.

C#
protected override Storyboard CreateAnimationOverride(FrameworkElement control, FrameworkElement target)
Parameters:controlFrameworkElement

The control for which the animation is needed.

targetFrameworkElement

The targeted element of the animation.

Returns:

Storyboard

The newly created animation.

Overrides: BaseAnimation.CreateAnimationOverride(FrameworkElement, FrameworkElement)

Updates the slide animation.

C#
protected override void UpdateAnimationOverride(FrameworkElement control, Storyboard storyboard, FrameworkElement target, params object[] args)
Parameters:controlFrameworkElement

The control for which the animation needs to be updated.

storyboardStoryboard

Storyboard that needs to be updated.

targetFrameworkElement

The targeted element of the animation.

argsobject[]

Overrides: BaseAnimation.UpdateAnimationOverride(FrameworkElement, Storyboard, FrameworkElement, params object[])

Remarks:

Currently the method sets the SpeedRatio of the storyboard to the global AnimationSpeedRatio if the local SpeedRatio is null. If the local SpeedRatio value is set, it will be used.