Class DiscreteColorKeyFrame
Implements
Inherited Members
Namespace: System.Windows.Media.Animation
Assembly: OpenSilver.dll
Syntax
public sealed class DiscreteColorKeyFrame : ColorKeyFrame, IDependencyObject, IKeyFrame
Constructors
| Improve this Doc View SourceDiscreteColorKeyFrame()
Initializes a new instance of the DiscreteColorKeyFrame class.
Declaration
public DiscreteColorKeyFrame()
DiscreteColorKeyFrame(Color)
Initializes a new instance of the DiscreteColorKeyFrame class with the specified ending value.
Declaration
public DiscreteColorKeyFrame(Color value)
Parameters
Type | Name | Description |
---|---|---|
Color | value | Ending value (also known as "target value") for the key frame. |
DiscreteColorKeyFrame(Color, KeyTime)
Initializes a new instance of the DiscreteColorKeyFrame class with the specified ending value and key time.
Declaration
public DiscreteColorKeyFrame(Color value, KeyTime keyTime)
Parameters
Type | Name | Description |
---|---|---|
Color | value | Ending value (also known as "target value") for the key frame. |
KeyTime | keyTime | Key time for the key frame. The key time determines when the target value is reached which is also when the key frame ends. |
Methods
| Improve this Doc View SourceInterpolateValueCore(Color, Double)
Calculates the value of a key frame at the progress increment provided.
Declaration
protected override Color InterpolateValueCore(Color baseValue, double keyFrameProgress)
Parameters
Type | Name | Description |
---|---|---|
Color | baseValue | The value to animate from; typically the value of the previous key frame. |
System.Double | keyFrameProgress | A value between 0.0 and 1.0, inclusive, that specifies the percentage of time that has elapsed for this key frame. |
Returns
Type | Description |
---|---|
Color | The output value of this key frame given the specified base value and progress. |