AnimationPropertyInfo.GetResolvedCompositionObject 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
擷取與 相關聯的 AnimationPropertyInfo
組合物件。
public:
virtual CompositionObject ^ GetResolvedCompositionObject() = GetResolvedCompositionObject;
CompositionObject GetResolvedCompositionObject();
public CompositionObject GetResolvedCompositionObject();
function getResolvedCompositionObject()
Public Function GetResolvedCompositionObject () As CompositionObject
傳回
與 相關聯的 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();