AnimationPropertyInfo.GetResolvedCompositionObjectProperty Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Mengambil properti yang dapat dianimasikan dari objek komposisi yang terkait dengan AnimationPropertyInfo
.
public:
virtual Platform::String ^ GetResolvedCompositionObjectProperty() = GetResolvedCompositionObjectProperty;
winrt::hstring GetResolvedCompositionObjectProperty();
public string GetResolvedCompositionObjectProperty();
function getResolvedCompositionObjectProperty()
Public Function GetResolvedCompositionObjectProperty () As String
Mengembalikan
Properti yang dapat dianimasikan dari objek komposisi yang terkait dengan AnimationPropertyInfo
.
Persyaratan Windows
Rangkaian perangkat |
Windows 10, version 2104 (diperkenalkan dalam 10.0.20348.0)
|
API contract |
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v12.0)
|
Contoh
// 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();