RectAnimation Constructors

Definition

Initializes a new instance of the RectAnimation class.

Overloads

RectAnimation()

Initializes a new instance of the RectAnimation class.

RectAnimation(Rect, Duration)

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

RectAnimation(Rect, Duration, FillBehavior)

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

RectAnimation(Rect, Rect, Duration)

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

RectAnimation(Rect, Rect, Duration, FillBehavior)

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

RectAnimation()

Initializes a new instance of the RectAnimation class.

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

Applies to

RectAnimation(Rect, Duration)

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

Parameters

toValue
Rect

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

RectAnimation(Rect, Duration, FillBehavior)

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

Parameters

toValue
Rect

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

RectAnimation(Rect, Rect, Duration)

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

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

Parameters

fromValue
Rect

The starting value of the animation.

toValue
Rect

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

RectAnimation(Rect, Rect, Duration, FillBehavior)

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

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

Parameters

fromValue
Rect

The starting value of the animation.

toValue
Rect

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