Επεξεργασία

Κοινή χρήση μέσω


ColorAnimation Constructors

Definition

Initializes a new instance of the ColorAnimation class.

Overloads

ColorAnimation()

Initializes a new instance of the ColorAnimation class.

ColorAnimation(Color, Duration)

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

ColorAnimation(Color, Duration, FillBehavior)

Initializes a new instance of the ColorAnimation 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 an another animation.

ColorAnimation(Color, Color, Duration)

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

ColorAnimation(Color, Color, Duration, FillBehavior)

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

ColorAnimation()

Initializes a new instance of the ColorAnimation class.

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

Applies to

ColorAnimation(Color, Duration)

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

Parameters

toValue
Color

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

ColorAnimation(Color, Duration, FillBehavior)

Initializes a new instance of the ColorAnimation 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 an another animation.

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

Parameters

toValue
Color

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

ColorAnimation(Color, Color, Duration)

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

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

Parameters

fromValue
Color

The starting value of the animation.

toValue
Color

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

ColorAnimation(Color, Color, Duration, FillBehavior)

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

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

Parameters

fromValue
Color

The starting value of the animation.

toValue
Color

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