DiscreteObjectKeyFrame DiscreteObjectKeyFrame DiscreteObjectKeyFrame Class

Animates from the Object value of the previous key frame to its own Value using discrete values.

Syntax

Declaration

public sealed class DiscreteObjectKeyFramepublic sealed class DiscreteObjectKeyFramePublic NotInheritable Class DiscreteObjectKeyFrame
<DiscreteObjectKeyFrame ...>
  <DiscreteObjectKeyFrame.Value>
    objectValue
  </DiscreteObjectKeyFrame.Value>
</DiscreteObjectKeyFrame ...>
-or-
</DiscreteObjectKeyFrame Value="objectAsAttribute"...>

Inheritance Hierarchy

Remarks

Key-frame animations permit more than one target value that is reached at a point along the animation timeline. In other words each key frame can specify a different intermediate value, and the last key frame reached is the final animation value. By specifying multiple values to animate, you can make more complex animations.

DiscreteObjectKeyFrame is the only keyframe type permitted in an ObjectAnimationUsingKeyFrames. There are no linear interpolations or other interpolation logic that's possible for changing object values as the animation runs. The old object is removed at the KeyTime and the new object that is the value of the keyframe with that KeyTime replaces it.

There are several scenarios where using ObjectAnimationUsingKeyFrames rather than a typed animation is useful. Some of them are:

For more info on how to use key-frame animations, see Key-frame animations and easing function animations.

Constructors summary

Initializes a new instance of the DiscreteObjectKeyFrame class.

Constructors

  • DiscreteObjectKeyFrame()
    DiscreteObjectKeyFrame()
    DiscreteObjectKeyFrame()
    DiscreteObjectKeyFrame()

    Initializes a new instance of the DiscreteObjectKeyFrame class.

    public DiscreteObjectKeyFrame()public New()Public Sub New()public DiscreteObjectKeyFrame()

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ActivatableAttribute
Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.ThreadingAttribute
Windows.Foundation.Metadata.WebHostHiddenAttribute

Details

Assembly

Windows.UI.Xaml.Media.Animation.dll