-api-id | -api-type |
---|---|
T:Microsoft.UI.Composition.KeyFrameAnimation |
winrt class |
A time-based animation with one or more key frames. These frames are markers, allowing developers to specify values at specific times for the animating property. KeyFrame animations can be further customized by specifying how the animation interpolates between keyframes.
An animation is associated with an object's property by calling CompositionObject.StartAnimation and specifying the property name and the animation. See the remarks section of CompositionObject.StartAnimation for a list of animatable properties. See Composition Animations Overview for additional information on ExpressionAnimations.
A KeyFrameAnimation does not stop automatically when an app's process is suspended. You must subscribe to app state events and stop or pause your animations before the app is suspended. For more info about app suspension, see App lifecycle.
Composition Animations Overview, CompositionAnimation, IClosable