CompositionObject.StartAnimationWithIAnimationObject(IAnimationObject, String, CompositionAnimation) CompositionObject.StartAnimationWithIAnimationObject(IAnimationObject, String, CompositionAnimation) CompositionObject.StartAnimationWithIAnimationObject(IAnimationObject, String, CompositionAnimation) CompositionObject.StartAnimationWithIAnimationObject(IAnimationObject, String, CompositionAnimation) Method

Definition

Connects an animation with the specified property of the target object and starts the animation.

public : static void StartAnimationWithIAnimationObject(IAnimationObject target, Platform::String propertyName, CompositionAnimation animation)
static void StartAnimationWithIAnimationObject(IAnimationObject target, winrt::hstring propertyName, CompositionAnimation animation) const;
public static void StartAnimationWithIAnimationObject(IAnimationObject target, String propertyName, CompositionAnimation animation)
Public Shared Sub StartAnimationWithIAnimationObject(target As IAnimationObject, propertyName As String, animation As CompositionAnimation)

Parameters

target
IAnimationObject IAnimationObject

The object that defines the property to be animated.

propertyName
String String

The property to associate the animation with.

animation
CompositionAnimation CompositionAnimation

The animation to associate with the specified property.

Additional features and requirements

Device family
Windows 10, version 1809 (introduced v10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v7)