ListViewBase.TryStartConnectedAnimationAsync(ConnectedAnimation, Object, String) Method

Definition

Attempts to start the animation.

Equivalent WinUI method: Microsoft.UI.Xaml.Controls.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)

Parameters

animation
ConnectedAnimation

The animation to start.

item
Object

IInspectable

The data item that is animated into view.

elementName
String

The name of the element in the ItemTemplate that provides the animated visual.

Returns

IAsyncOperation<Boolean>

IAsyncOperation<bool>

true if the animation started; false if the animation has already been started, if it is no longer active, or if the destination element is the same as the source element.

Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Applies to

See also