Skip to main content

TransitionCompletedEventArgs Class

Definition

Assembly:Avalonia.Controls
Package:Avalonia
public class TransitionCompletedEventArgs

Inheritance: EventArgs -> RoutedEventArgs -> TransitionCompletedEventArgs

Constructors

TransitionCompletedEventArgs Constructor

Initializes a new instance of Avalonia.Controls.TransitionCompletedEventArgs.

public TransitionCompletedEventArgs(object from, object to, bool hasRunToCompletion)

Parameters

from object

The content that was transitioned from.

to object

The content that was transitioned to.

hasRunToCompletion bool

Whether the transition ran to completion.

Properties

NameDescription
FromGets the content that was transitioned from.
HasRunToCompletionGets whether the transition ran to completion. If false, the transition may have completed instantly or been cancelled.
ToGets the content that was transitioned to.
HandledGets or sets a value indicating whether the routed event has already been handled. Inherited from RoutedEventArgs.
RouteGets or sets the routing strategy (direct, bubbling, or tunneling) of the routed event. Inherited from RoutedEventArgs.
RoutedEventGets or sets the routed event associated with these event args. Inherited from RoutedEventArgs.
SourceGets or sets the source object that raised the routed event. Inherited from RoutedEventArgs.

From Property

Gets the content that was transitioned from.

public object From { get; set; }

HasRunToCompletion Property

Gets whether the transition ran to completion. If false, the transition may have completed instantly or been cancelled.

public bool HasRunToCompletion { get; set; }

To Property

Gets the content that was transitioned to.

public object To { get; set; }