Class Int32Animation
Animates the value of an System.Int32 property between two target values using linear interpolation over a specified Duration.
Inherited Members
Namespace: System.Windows.Media.Animation
Assembly: OpenSilver.dll
Syntax
public sealed class Int32Animation : AnimationTimeline, IDependencyObject
Constructors
| Improve this Doc View SourceInt32Animation()
Initializes a new instance of the Int32Animation class.
Declaration
public Int32Animation()
Int32Animation(Int32, Int32, Duration)
Initializes a new instance of the Int32Animation class that animates from the specified starting value to the specified destination value over the specified duration.
Declaration
public Int32Animation(int fromValue, int toValue, Duration duration)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | fromValue | The starting value of the animation. |
System.Int32 | toValue | 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. |
Int32Animation(Int32, Int32, Duration, FillBehavior)
Initializes a new instance of the Int32Animation class that animates from the specified starting value to the specified destination value over the specified duration and has the specified fill behavior.
Declaration
public Int32Animation(int fromValue, int toValue, Duration duration, FillBehavior fillBehavior)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | fromValue | The starting value of the animation. |
System.Int32 | toValue | 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. |
Int32Animation(Int32, Duration)
Initializes a new instance of the Int32Animation 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.
Declaration
public Int32Animation(int toValue, Duration duration)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | toValue | 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. |
Int32Animation(Int32, Duration, FillBehavior)
Initializes a new instance of the Int32Animation 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.
Declaration
public Int32Animation(int toValue, Duration duration, FillBehavior fillBehavior)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | toValue | 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. |
Fields
| Improve this Doc View SourceByProperty
Identifies the By dependency property.
Declaration
[NotImplemented]
public static readonly DependencyProperty ByProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
EasingFunctionProperty
Identifies the EasingFunction dependency property.
Declaration
public static readonly DependencyProperty EasingFunctionProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
FromProperty
Identifies the From dependency property.
Declaration
public static readonly DependencyProperty FromProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
ToProperty
Identifies the To dependency property.
Declaration
public static readonly DependencyProperty ToProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceBy
Gets or sets the total amount by which the animation changes its starting value.
Declaration
[NotImplemented]
public int? By { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> | The total amount by which the animation changes its starting value. The default is null. |
EasingFunction
Gets or sets the easing function applied to this animation.
Declaration
public IEasingFunction EasingFunction { get; set; }
Property Value
Type | Description |
---|---|
IEasingFunction | The easing function applied to this animation. |
From
Gets or sets the animation's starting value.
Declaration
public int? From { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> | The starting value of the animation. The default value is null. |
To
Gets or sets the animation's ending value.
Declaration
public int? To { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> | The ending value of the animation. The default value is null. |