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

属性

Windows 要求

设备系列
Windows 10 Creators Update (在 10.0.15063.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)

适用于

另请参阅