編輯

共用方式為


DoubleAnimation Constructors

Definition

Initializes a new instance of the DoubleAnimation class.

Overloads

DoubleAnimation()

Initializes a new instance of the DoubleAnimation class.

DoubleAnimation(Double, Duration)

Initializes a new instance of the DoubleAnimation 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.

DoubleAnimation(Double, Double, Duration)

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

DoubleAnimation(Double, Duration, FillBehavior)

Initializes a new instance of the DoubleAnimation 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.

DoubleAnimation(Double, Double, Duration, FillBehavior)

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

DoubleAnimation()

Initializes a new instance of the DoubleAnimation class.

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

Applies to

DoubleAnimation(Double, Duration)

Initializes a new instance of the DoubleAnimation 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:
 DoubleAnimation(double toValue, System::Windows::Duration duration);
public DoubleAnimation (double toValue, System.Windows.Duration duration);
new System.Windows.Media.Animation.DoubleAnimation : double * System.Windows.Duration -> System.Windows.Media.Animation.DoubleAnimation
Public Sub New (toValue As Double, duration As Duration)

Parameters

toValue
Double

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

DoubleAnimation(Double, Double, Duration)

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

public:
 DoubleAnimation(double fromValue, double toValue, System::Windows::Duration duration);
public DoubleAnimation (double fromValue, double toValue, System.Windows.Duration duration);
new System.Windows.Media.Animation.DoubleAnimation : double * double * System.Windows.Duration -> System.Windows.Media.Animation.DoubleAnimation
Public Sub New (fromValue As Double, toValue As Double, duration As Duration)

Parameters

fromValue
Double

The starting value of the animation.

toValue
Double

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

DoubleAnimation(Double, Duration, FillBehavior)

Initializes a new instance of the DoubleAnimation 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:
 DoubleAnimation(double toValue, System::Windows::Duration duration, System::Windows::Media::Animation::FillBehavior fillBehavior);
public DoubleAnimation (double toValue, System.Windows.Duration duration, System.Windows.Media.Animation.FillBehavior fillBehavior);
new System.Windows.Media.Animation.DoubleAnimation : double * System.Windows.Duration * System.Windows.Media.Animation.FillBehavior -> System.Windows.Media.Animation.DoubleAnimation
Public Sub New (toValue As Double, duration As Duration, fillBehavior As FillBehavior)

Parameters

toValue
Double

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

DoubleAnimation(Double, Double, Duration, FillBehavior)

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

public:
 DoubleAnimation(double fromValue, double toValue, System::Windows::Duration duration, System::Windows::Media::Animation::FillBehavior fillBehavior);
public DoubleAnimation (double fromValue, double toValue, System.Windows.Duration duration, System.Windows.Media.Animation.FillBehavior fillBehavior);
new System.Windows.Media.Animation.DoubleAnimation : double * double * System.Windows.Duration * System.Windows.Media.Animation.FillBehavior -> System.Windows.Media.Animation.DoubleAnimation
Public Sub New (fromValue As Double, toValue As Double, duration As Duration, fillBehavior As FillBehavior)

Parameters

fromValue
Double

The starting value of the animation.

toValue
Double

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