Class ThicknessKeyFrame
Abstract class that, when implemented, defines an animation segment with its own target value and interpolation method
for a Thickness
Inheritance
Implements
Inherited Members
Namespace: System.Windows.Media.Animation
Assembly: OpenSilver.dll
Syntax
public abstract class ThicknessKeyFrame : DependencyObject, IDependencyObject, IKeyFrame
Constructors
| Improve this Doc View SourceThicknessKeyFrame()
Initializes a new instance of the Thickness
Declaration
protected ThicknessKeyFrame()
ThicknessKeyFrame(Thickness)
Initializes a new instance of the Thickness
Declaration
protected ThicknessKeyFrame(Thickness value)
Parameters
Type | Name | Description |
---|---|---|
Thickness | value | The Value of the new Thickness |
ThicknessKeyFrame(Thickness, KeyTime)
Initializes a new instance of the Thickness
Declaration
protected ThicknessKeyFrame(Thickness value, KeyTime keyTime)
Parameters
Type | Name | Description |
---|---|---|
Thickness | value | The Value of the new Thickness |
Key |
keyTime | The Key |
Fields
| Improve this Doc View SourceKeyTimeProperty
Identifies the Key
Declaration
public static readonly DependencyProperty KeyTimeProperty
Field Value
Type | Description |
---|---|
Dependency |
ValueProperty
Identifies the Value dependency property.
Declaration
public static readonly DependencyProperty ValueProperty
Field Value
Type | Description |
---|---|
Dependency |
Properties
| Improve this Doc View SourceKeyTime
Gets or sets the time at which the key frame's target Value should be reached.
Declaration
public KeyTime KeyTime { get; set; }
Property Value
Type | Description |
---|---|
Key |
The time at which the key frame's current value should be equal to its Value property. The default value is Uniform. |
Value
Gets or sets the key frame's target value.
Declaration
public Thickness Value { get; set; }
Property Value
Type | Description |
---|---|
Thickness | The key frame's target value, which is the value of this key frame at its specified Key |
Methods
| Improve this Doc View SourceInterpolateValue(Thickness, Double)
Returns the interpolated value of a specific key frame at the progress increment provided.
Declaration
public Thickness InterpolateValue(Thickness baseValue, double keyFrameProgress)
Parameters
Type | Name | Description |
---|---|---|
Thickness | baseValue | The value to animate from. |
System. |
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 |
---|---|
Thickness | The output value of this key frame given the specified base value and progress. |
Exceptions
Type | Condition |
---|---|
System. |
Occurs if keyFrameProgress is not between 0.0 and 1.0, inclusive. |
InterpolateValueCore(Thickness, Double)
Calculates the value of a key frame at the progress increment provided.
Declaration
protected virtual Thickness InterpolateValueCore(Thickness baseValue, double keyFrameProgress)
Parameters
Type | Name | Description |
---|---|---|
Thickness | baseValue | The value to animate from; typically the value of the previous key frame. |
System. |
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 |
---|---|
Thickness | The output value of this key frame given the specified base value and progress. |
Explicit Interface Implementations
| Improve this Doc View SourceIKeyFrame.Value
Declaration
object IKeyFrame.Value { get; set; }
Returns
Type | Description |
---|---|
System. |