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;如果动画不再处于活动状态,或者如果目标元素与源元素相同,则为 false

属性

适用于

另请参阅