共用方式為


ListViewBase.TryStartConnectedAnimationAsync 方法

定義

嘗試啟動動畫。

public:
 virtual IAsyncOperation<bool> ^ TryStartConnectedAnimationAsync(ConnectedAnimation ^ animation, Platform::Object ^ item, Platform::String ^ elementName) = TryStartConnectedAnimationAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TryStartConnectedAnimationAsync(ConnectedAnimation const& animation, IInspectable const& item, winrt::hstring const& elementName);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TryStartConnectedAnimationAsync(ConnectedAnimation animation, object item, string elementName);
function tryStartConnectedAnimationAsync(animation, item, elementName)
Public Function TryStartConnectedAnimationAsync (animation As ConnectedAnimation, item As Object, elementName As String) As IAsyncOperation(Of Boolean)

參數

animation
ConnectedAnimation

要啟動的動畫。

item
Object

Platform::Object

IInspectable

以動畫顯示到檢視中的數據項。

elementName
String

Platform::String

winrt::hstring

ItemTemplate 中提供動畫視覺效果的項目名稱。

傳回

如果動畫已啟動,則為 true;如果動畫已經啟動,如果動畫已不再使用,或目的地元素與來源元素相同,則為 false

屬性

適用於

另請參閱