Compositor.CreateAnimationPropertyInfo Méthode

Définition

Crée un instance d’AnimationPropertyInfo.

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

Retours

Renvoie l’objet AnimationPropertyInfo créé.

Configuration requise pour Windows

Famille d’appareils
Windows 10, version 2104 (introduit dans 10.0.20348.0)
API contract
Windows.Foundation.UniversalApiContract (introduit dans v12.0)

Exemples

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

S’applique à