ThicknessAnimation Constructors

Definition

Initializes a new instance of the ThicknessAnimation class.

Overloads

ThicknessAnimation()

Initializes a new instance of the ThicknessAnimation class.

ThicknessAnimation(Thickness, Duration)

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

ThicknessAnimation(Thickness, Duration, FillBehavior)

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

ThicknessAnimation(Thickness, Thickness, Duration)

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

ThicknessAnimation(Thickness, Thickness, Duration, FillBehavior)

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

ThicknessAnimation()

Initializes a new instance of the ThicknessAnimation class.

C#
public ThicknessAnimation();

Applies to

.NET Framework 4.8.1 a ďalšie verzie
Produkt Verzie
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

ThicknessAnimation(Thickness, Duration)

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

C#
public ThicknessAnimation(System.Windows.Thickness toValue, System.Windows.Duration duration);

Parameters

toValue
Thickness

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

.NET Framework 4.8.1 a ďalšie verzie
Produkt Verzie
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

ThicknessAnimation(Thickness, Duration, FillBehavior)

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

C#
public ThicknessAnimation(System.Windows.Thickness toValue, System.Windows.Duration duration, System.Windows.Media.Animation.FillBehavior fillBehavior);

Parameters

toValue
Thickness

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

.NET Framework 4.8.1 a ďalšie verzie
Produkt Verzie
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

ThicknessAnimation(Thickness, Thickness, Duration)

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

C#
public ThicknessAnimation(System.Windows.Thickness fromValue, System.Windows.Thickness toValue, System.Windows.Duration duration);

Parameters

fromValue
Thickness

The starting value of the animation.

toValue
Thickness

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

.NET Framework 4.8.1 a ďalšie verzie
Produkt Verzie
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

ThicknessAnimation(Thickness, Thickness, Duration, FillBehavior)

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

C#
public ThicknessAnimation(System.Windows.Thickness fromValue, System.Windows.Thickness toValue, System.Windows.Duration duration, System.Windows.Media.Animation.FillBehavior fillBehavior);

Parameters

fromValue
Thickness

The starting value of the animation.

toValue
Thickness

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

.NET Framework 4.8.1 a ďalšie verzie
Produkt Verzie
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10