다음을 통해 공유


Compositor.CreateAnimationPropertyInfo 메서드

정의

AnimationPropertyInfo의 instance 만듭니다.

public:
 virtual AnimationPropertyInfo ^ CreateAnimationPropertyInfo() = CreateAnimationPropertyInfo;
AnimationPropertyInfo CreateAnimationPropertyInfo();
public AnimationPropertyInfo CreateAnimationPropertyInfo();
function createAnimationPropertyInfo()
Public Function CreateAnimationPropertyInfo () As AnimationPropertyInfo

반환

만든 AnimationPropertyInfo 개체를 반환합니다.

Windows 요구 사항

디바이스 패밀리
Windows 10, version 2104 (10.0.20348.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v12.0에서 도입되었습니다.)

예제

// Create an AnimationPropertyInfo object that will hold the mapping between the custom
// animatable property and the corresponding composition object.
AnimationPropertyInfo propertyInfo = _compositor.CreateAnimationPropertyInfo();

animatableObject.PopulatePropertyInfo("CustomOffset", propertyInfo);

// Get the resolved composition object and property for "CustomOffset".
CompositionObject resolvedObject = propertyInfo.GetResolvedCompositionObject();
String resolvedProperty = propertyInfo.GetResolvedCompositionObjectProperty();

적용 대상