Partilhar via


ConnectedAnimation.TryStart Método

Definição

Sobrecargas

TryStart(UIElement)

Tenta iniciar a animação.

TryStart(UIElement, IIterable<UIElement>)

Tenta iniciar a animação no elemento de destino e nos elementos secundários especificados.

TryStart(UIElement)

Tenta iniciar a animação.

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

Parâmetros

destination
UIElement

O elemento que é animado em exibição.

Retornos

Boolean

bool

true se a animação for iniciada; false se a animação já tiver sido iniciada, se ela não estiver mais ativa ou se o elemento de destino for o mesmo que o elemento de origem.

Atributos

Aplica-se a

TryStart(UIElement, IIterable<UIElement>)

Tenta iniciar a animação no elemento de destino e nos elementos secundários especificados.

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

Parâmetros

destination
UIElement

O elemento que é animado em exibição.

coordinatedElements

IIterable<UIElement>

IEnumerable<UIElement>

A coleção de elementos secundários. Esses elementos reproduzirão uma animação de entrada em que viajam ao lado do destino de animação conectado em uma "animação coordenada".

Retornos

Boolean

bool

true se a animação for iniciada; false se a animação já tiver sido iniciada, se ela não estiver mais ativa ou se o elemento de destino for o mesmo que o elemento de origem.

Atributos

Requisitos do Windows

Família de dispositivos
Windows 10 Creators Update (introduzida na 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduzida na v4.0)

Aplica-se a