CompositionObject.TryGetAnimationController(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳一個 AnimationController,代表在指定屬性上執行的動畫。
public:
virtual AnimationController ^ TryGetAnimationController(Platform::String ^ propertyName) = TryGetAnimationController;
AnimationController TryGetAnimationController(winrt::hstring const& propertyName);
public AnimationController TryGetAnimationController(string propertyName);
function tryGetAnimationController(propertyName)
Public Function TryGetAnimationController (propertyName As String) As AnimationController
參數
- propertyName
-
String
Platform::String
winrt::hstring
這個屬性是動畫化的。
傳回
指定動畫的 AnimationController 實例,若找不到該動畫則為 null 。