Class ColorAnimation
Animates the value of a Color 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 ColorAnimation : AnimationTimeline, IDependencyObject
Constructors
| Improve this Doc View SourceColorAnimation()
Initializes a new instance of the ColorAnimation class.
Declaration
public ColorAnimation()
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 Color? By { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Color> | 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 Color? From { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Color> | The starting value of the animation. The default is null. |
To
Gets or sets the animation's ending value.
Declaration
public Color? To { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Color> | The ending value of the animation. The default is null. |