CompositionObject.StartAnimationWithIAnimationObject Metodo

Definizione

Connette un'animazione con la proprietà specificata dell'oggetto di destinazione e avvia l'animazione.

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)

Parametri

target
IAnimationObject

Oggetto che definisce la proprietà da animare.

propertyName
String

Platform::String

winrt::hstring

Proprietà da associare all'animazione.

animation
CompositionAnimation

Animazione da associare alla proprietà specificata.

Requisiti Windows

Famiglia di dispositivi
Windows 10, version 1809 (è stato introdotto in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (è stato introdotto in v7.0)

Si applica a