CompositionObject.StartAnimationWithIAnimationObject Метод

Определение

Соединяет анимацию с указанным свойством целевого объекта и запускает анимацию.

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)

Параметры

target
IAnimationObject

Объект , определяющий анимированное свойство.

propertyName
String

Platform::String

winrt::hstring

Свойство, с которым связывается анимация.

animation
CompositionAnimation

Анимация, связанная с указанным свойством.

Требования к Windows

Семейство устройств
Windows 10, version 1809 (появилось в 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (появилось в v7.0)

Применяется к