Class DecimalAnimation
Animates the value of a System.
Inherited Members
Namespace: System.Windows.Media.Animation
Assembly: OpenSilver.dll
Syntax
public sealed class DecimalAnimation : AnimationTimeline, IDependencyObject
Constructors
| Improve this Doc View SourceDecimalAnimation()
Initializes a new instance of the Decimal
Declaration
public DecimalAnimation()
DecimalAnimation(Decimal, Decimal, Duration)
Initializes a new instance of the Decimal
Declaration
public DecimalAnimation(decimal fromValue, decimal toValue, Duration duration)
Parameters
Type | Name | Description |
---|---|---|
System. |
fromValue | The starting value of the animation. |
System. |
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. |
DecimalAnimation(Decimal, Decimal, Duration, FillBehavior)
Initializes a new instance of the Decimal
Declaration
public DecimalAnimation(decimal fromValue, decimal toValue, Duration duration, FillBehavior fillBehavior)
Parameters
Type | Name | Description |
---|---|---|
System. |
fromValue | The starting value of the animation. |
System. |
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. |
Fill |
fillBehavior | Specifies how the animation behaves when it is not active. |
DecimalAnimation(Decimal, Duration)
Initializes a new instance of the Decimal
Declaration
public DecimalAnimation(decimal toValue, Duration duration)
Parameters
Type | Name | Description |
---|---|---|
System. |
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. |
DecimalAnimation(Decimal, Duration, FillBehavior)
Initializes a new instance of the Decimal
Declaration
public DecimalAnimation(decimal toValue, Duration duration, FillBehavior fillBehavior)
Parameters
Type | Name | Description |
---|---|---|
System. |
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. |
Fill |
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 |
---|---|
Dependency |
EasingFunctionProperty
Identifies the Easing
Declaration
public static readonly DependencyProperty EasingFunctionProperty
Field Value
Type | Description |
---|---|
Dependency |
FromProperty
Identifies the From dependency property.
Declaration
public static readonly DependencyProperty FromProperty
Field Value
Type | Description |
---|---|
Dependency |
ToProperty
Identifies the To dependency property.
Declaration
public static readonly DependencyProperty ToProperty
Field Value
Type | Description |
---|---|
Dependency |
Properties
| Improve this Doc View SourceBy
Gets or sets the total amount by which the animation changes its starting value.
Declaration
[NotImplemented]
public decimal? By { get; set; }
Property Value
Type | Description |
---|---|
System. |
The total amount by which the animation changes its starting value. The default value is null. |
EasingFunction
Gets or sets the easing function applied to this animation.
Declaration
public IEasingFunction EasingFunction { get; set; }
Property Value
Type | Description |
---|---|
IEasing |
The easing function applied to this animation. |
From
Gets or sets the animation's starting value.
Declaration
public decimal? From { get; set; }
Property Value
Type | Description |
---|---|
System. |
The starting value of the animation. The default value is null. |
To
Gets or sets the animation's ending value.
Declaration
public decimal? To { get; set; }
Property Value
Type | Description |
---|---|
System. |
The ending value of the animation. The default value is null. |