Udostępnij za pośrednictwem


ConnectedAnimation.TryStart Method

Definition

Overloads

TryStart(UIElement)

Attempts to start the animation.

TryStart(UIElement, IIterable<UIElement>)

Attempts to start the animation on the destination element and specified secondary elements.

TryStart(UIElement)

Attempts to start the animation.

public:
 virtual bool TryStart(UIElement ^ destination) = TryStart;
/// [Windows.Foundation.Metadata.Overload("TryStart")]
bool TryStart(UIElement const& destination);
[Windows.Foundation.Metadata.Overload("TryStart")]
public bool TryStart(UIElement destination);
function tryStart(destination)
Public Function TryStart (destination As UIElement) As Boolean

Parameters

destination
UIElement

The element that is animated into view.

Returns

Boolean

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

Applies to

TryStart(UIElement, IIterable<UIElement>)

Attempts to start the animation on the destination element and specified secondary elements.

public:
 virtual bool TryStart(UIElement ^ destination, IIterable<UIElement ^> ^ coordinatedElements) = TryStart;
/// [Windows.Foundation.Metadata.Overload("TryStartWithCoordinatedElements")]
bool TryStart(UIElement const& destination, IIterable<UIElement> const& coordinatedElements);
[Windows.Foundation.Metadata.Overload("TryStartWithCoordinatedElements")]
public bool TryStart(UIElement destination, IEnumerable<UIElement> coordinatedElements);
function tryStart(destination, coordinatedElements)
Public Function TryStart (destination As UIElement, coordinatedElements As IEnumerable(Of UIElement)) As Boolean

Parameters

destination
UIElement

The element that is animated into view.

coordinatedElements

IIterable<UIElement>

IEnumerable<UIElement>

The collection of secondary elements. These elements will play an entrance animation where they travel alongside the connected animation target in a "coordinated animation".

Returns

Boolean

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

Applies to