Share via


CompositionObject.StartAnimationWithIAnimationObject Méthode

Définition

Connecte une animation à la propriété spécifiée de l’objet cible et démarre l’animation.

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

Paramètres

target
IAnimationObject

Objet qui définit la propriété à animer.

propertyName
String

Platform::String

winrt::hstring

Propriété à laquelle associer l’animation.

animation
CompositionAnimation

Animation à associer à la propriété spécifiée.

Configuration requise pour Windows

Famille d’appareils
Windows 10, version 1809 (introduit dans 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduit dans v7.0)

S’applique à