Show / Hide Table of Contents

Class Int32KeyFrame

Abstract class that, when implemented, defines an animation segment with its own target value and interpolation method for a Int32AnimationUsingKeyFrames.

Inheritance
System.Object
DependencyObject
Int32KeyFrame
DiscreteInt32KeyFrame
EasingInt32KeyFrame
LinearInt32KeyFrame
SplineInt32KeyFrame
Implements
IKeyFrame
Inherited Members
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.INTERNAL_OnAttachedToVisualTree()
DependencyObject.INTERNAL_OnDetachedFromVisualTree()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Media.Animation
Assembly: OpenSilver.dll
Syntax
public abstract class Int32KeyFrame : DependencyObject, IDependencyObject, IKeyFrame

Constructors

| Improve this Doc View Source

Int32KeyFrame()

Initializes a new instance of the Int32KeyFrame class.

Declaration
protected Int32KeyFrame()
| Improve this Doc View Source

Int32KeyFrame(Int32)

Initializes a new instance of the Int32KeyFrame class that has the specified target Value.

Declaration
protected Int32KeyFrame(int value)
Parameters
Type Name Description
System.Int32 value

The Value of the new Int32KeyFrame instance.

| Improve this Doc View Source

Int32KeyFrame(Int32, KeyTime)

Initializes a new instance of the Int32KeyFrame class that has the specified target Value and KeyTime.

Declaration
protected Int32KeyFrame(int value, KeyTime keyTime)
Parameters
Type Name Description
System.Int32 value

The Value of the new Int32KeyFrame instance.

KeyTime keyTime

The KeyTime of the new Int32KeyFrame instance.

Fields

| Improve this Doc View Source

KeyTimeProperty

Identifies the KeyTime dependency property.

Declaration
public static readonly DependencyProperty KeyTimeProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

ValueProperty

Identifies the Value dependency property.

Declaration
public static readonly DependencyProperty ValueProperty
Field Value
Type Description
DependencyProperty

Properties

| Improve this Doc View Source

KeyTime

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
KeyTime

The time at which the key frame's current value should be equal to its Value property. The default value is Uniform.

| Improve this Doc View Source

Value

Gets or sets the key frame's target value.

Declaration
public int Value { get; set; }
Property Value
Type Description
System.Int32

The key frame's target value, which is the value of this key frame at its specified KeyTime. The default value is 0.

Methods

| Improve this Doc View Source

InterpolateValue(Int32, Double)

Returns the interpolated value of a specific key frame at the progress increment provided.

Declaration
public int InterpolateValue(int baseValue, double keyFrameProgress)
Parameters
Type Name Description
System.Int32 baseValue

The value to animate from.

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
System.Int32

The output value of this key frame given the specified base value and progress.

Exceptions
Type Condition
System.ArgumentOutOfRangeException

Occurs if keyFrameProgress is not between 0.0 and 1.0, inclusive.

| Improve this Doc View Source

InterpolateValueCore(Int32, Double)

Calculates the value of a key frame at the progress increment provided.

Declaration
protected virtual int InterpolateValueCore(int baseValue, double keyFrameProgress)
Parameters
Type Name Description
System.Int32 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
System.Int32

The output value of this key frame given the specified base value and progress.

Explicit Interface Implementations

| Improve this Doc View Source

IKeyFrame.Value

The value of this key frame at the KeyTime specified.

Declaration
object IKeyFrame.Value { get; set; }
Returns
Type Description
System.Object

Implements

IKeyFrame

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestorsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualChildren(DependencyObject)
VisualTreeExtensions.GetVisualChildrenAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualDescendants(DependencyObject)
VisualTreeExtensions.GetVisualDescendantsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualSiblings(DependencyObject)
VisualTreeExtensions.GetVisualSiblingsAndSelf(DependencyObject)
  • Improve this Doc
  • View Source