Class
PulseOpacityAnimation

Repeating opacity pulse animation that alternates the target's opacity between MinOpacity and MaxOpacity over (defaults to 1.2 seconds). The cycle has four equal phases: fade down, hold, fade up, hold.

Definition

Constructors

PulseOpacityAnimation()

Initializes a new instance of the PulseOpacityAnimation class.

Declaration

cs-api-definition
public PulseOpacityAnimation()

Properties

MaxOpacity

Gets or sets a value that describes the maximum opacity during the animation.

Declaration

cs-api-definition
public double MaxOpacity { get; set; }

Property Value

double

MinOpacity

Gets or sets a value that describes the minimum opacity during the animation.

Declaration

cs-api-definition
public double MinOpacity { get; set; }

Property Value

double

Methods

CreateAnimationOverride(FrameworkElement, FrameworkElement)

Creates the animation.

Declaration

cs-api-definition
protected override Storyboard CreateAnimationOverride(FrameworkElement control, FrameworkElement target)

Parameters

control

FrameworkElement

The control for which the animation is needed.

target

FrameworkElement

The targeted element of the animation.

Returns

Storyboard

The newly created animation.

Overrides BaseAnimation.CreateAnimationOverride(FrameworkElement, FrameworkElement)

UpdateAnimationOverride(FrameworkElement, Storyboard, FrameworkElement, params object[])

Updates the animation.

Declaration

cs-api-definition
protected override void UpdateAnimationOverride(FrameworkElement control, Storyboard storyboard, FrameworkElement target, params object[] args)

Parameters

control

FrameworkElement

The control for which the animation needs to be updated.

storyboard

Storyboard

Storyboard that needs to be updated.

target

FrameworkElement

The targeted element of the animation.

args

object[]

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