SingleAnimation Constructors

Definition

Initializes a new instance of the SingleAnimation class.

Overloads

SingleAnimation()

Initializes a new instance of the SingleAnimation class.

SingleAnimation(Single, Duration)

Initializes a new instance of the SingleAnimation class that animates to the specified value over the specified duration. The starting value for the animation is the base value of the property being animated or the output from another animation.

SingleAnimation(Single, Single, Duration)

Initializes a new instance of the SingleAnimation class that animates from the specified starting value to the specified destination value over the specified duration.

SingleAnimation(Single, Duration, FillBehavior)

Initializes a new instance of the SingleAnimation class that animates to the specified value over the specified duration and has the specified fill behavior. The starting value for the animation is the base value of the property being animated or the output from another animation.

SingleAnimation(Single, Single, Duration, FillBehavior)

Initializes a new instance of the SingleAnimation class that animates from the specified starting value to the specified destination value over the specified duration and has the specified fill behavior.

SingleAnimation()

Initializes a new instance of the SingleAnimation class.

public:
 SingleAnimation();
public SingleAnimation ();
Public Sub New ()

Applies to

SingleAnimation(Single, Duration)

Initializes a new instance of the SingleAnimation class that animates to the specified value over the specified duration. The starting value for the animation is the base value of the property being animated or the output from another animation.

public:
 SingleAnimation(float toValue, System::Windows::Duration duration);
public SingleAnimation (float toValue, System.Windows.Duration duration);
new System.Windows.Media.Animation.SingleAnimation : single * System.Windows.Duration -> System.Windows.Media.Animation.SingleAnimation
Public Sub New (toValue As Single, duration As Duration)

Parameters

toValue
Single

The destination value of the animation.

duration
Duration

The length of time the animation takes to play from start to finish, once. See the Duration property for more information.

Applies to

SingleAnimation(Single, Single, Duration)

Initializes a new instance of the SingleAnimation class that animates from the specified starting value to the specified destination value over the specified duration.

public:
 SingleAnimation(float fromValue, float toValue, System::Windows::Duration duration);
public SingleAnimation (float fromValue, float toValue, System.Windows.Duration duration);
new System.Windows.Media.Animation.SingleAnimation : single * single * System.Windows.Duration -> System.Windows.Media.Animation.SingleAnimation
Public Sub New (fromValue As Single, toValue As Single, duration As Duration)

Parameters

fromValue
Single

The starting value of the animation.

toValue
Single

The destination value of the animation.

duration
Duration

The length of time the animation takes to play from start to finish, once. See the Duration property for more information.

Applies to

SingleAnimation(Single, Duration, FillBehavior)

Initializes a new instance of the SingleAnimation class that animates to the specified value over the specified duration and has the specified fill behavior. The starting value for the animation is the base value of the property being animated or the output from another animation.

public:
 SingleAnimation(float toValue, System::Windows::Duration duration, System::Windows::Media::Animation::FillBehavior fillBehavior);
public SingleAnimation (float toValue, System.Windows.Duration duration, System.Windows.Media.Animation.FillBehavior fillBehavior);
new System.Windows.Media.Animation.SingleAnimation : single * System.Windows.Duration * System.Windows.Media.Animation.FillBehavior -> System.Windows.Media.Animation.SingleAnimation
Public Sub New (toValue As Single, duration As Duration, fillBehavior As FillBehavior)

Parameters

toValue
Single

The destination value of the animation.

duration
Duration

The length of time the animation takes to play from start to finish, once. See the Duration property for more information.

fillBehavior
FillBehavior

Specifies how the animation behaves when it is not active.

Applies to

SingleAnimation(Single, Single, Duration, FillBehavior)

Initializes a new instance of the SingleAnimation class that animates from the specified starting value to the specified destination value over the specified duration and has the specified fill behavior.

public:
 SingleAnimation(float fromValue, float toValue, System::Windows::Duration duration, System::Windows::Media::Animation::FillBehavior fillBehavior);
public SingleAnimation (float fromValue, float toValue, System.Windows.Duration duration, System.Windows.Media.Animation.FillBehavior fillBehavior);
new System.Windows.Media.Animation.SingleAnimation : single * single * System.Windows.Duration * System.Windows.Media.Animation.FillBehavior -> System.Windows.Media.Animation.SingleAnimation
Public Sub New (fromValue As Single, toValue As Single, duration As Duration, fillBehavior As FillBehavior)

Parameters

fromValue
Single

The starting value of the animation.

toValue
Single

The destination value of the animation.

duration
Duration

The length of time the animation takes to play from start to finish, once. See the Duration property for more information.

fillBehavior
FillBehavior

Specifies how the animation behaves when it is not active.

Applies to