TransitionCompletedEventArgs Class
Definition
Represents the event arguments for Avalonia.Controls.TransitioningContentControl.TransitionCompletedEvent.
public class TransitionCompletedEventArgs
Constructors
| Name | Description |
|---|---|
| TransitionCompletedEventArgs | Initializes a new instance of Avalonia.Controls.TransitionCompletedEventArgs. |
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
| Name | Description |
|---|---|
| From | Gets the content that was transitioned from. |
| HasRunToCompletion | Gets whether the transition ran to completion. If false, the transition may have completed instantly or been cancelled. |
| To | Gets the content that was transitioned to. |
| Handled | Gets or sets a value indicating whether the routed event has already been handled. Inherited from RoutedEventArgs. |
| Route | Gets or sets the routing strategy (direct, bubbling, or tunneling) of the routed event. Inherited from RoutedEventArgs. |
| RoutedEvent | Gets or sets the routed event associated with these event args. Inherited from RoutedEventArgs. |
| Source | Gets 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; }