Sprache

CompositionObject.StartAnimationWithIAnimationObject Methode

Definition

Verbindet eine Animation mit der angegebenen Eigenschaft des Zielobjekts und startet die 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)

Parameter

target
IAnimationObject

Das Objekt, das die zu animierende Eigenschaft definiert.

propertyName
String

Platform::String

winrt::hstring

Die Eigenschaft, der die Animation zugeordnet werden soll.

animation
CompositionAnimation

Die Animation, die der angegebenen Eigenschaft zugeordnet werden soll.

Gilt für: