AnimationPropertyInfo.GetResolvedCompositionObjectProperty Methode

Definition

Ruft die animatable-Eigenschaft aus dem Composition-Objekt ab, das dem AnimationPropertyInfozugeordnet ist.

public:
 virtual Platform::String ^ GetResolvedCompositionObjectProperty() = GetResolvedCompositionObjectProperty;
winrt::hstring GetResolvedCompositionObjectProperty();
public string GetResolvedCompositionObjectProperty();
function getResolvedCompositionObjectProperty()
Public Function GetResolvedCompositionObjectProperty () As String

Gibt zurück

String

Platform::String

winrt::hstring

Die animatable-Eigenschaft aus dem Composition-Objekt, das dem zugeordnet ist AnimationPropertyInfo.

Windows-Anforderungen

Gerätefamilie
Windows 10, version 2104 (eingeführt in 10.0.20348.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v12.0)

Beispiele

// 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();

Gilt für: