Skip to main content

CompositePageTransition Class

Defines a composite page transition that can be used to combine multiple transitions.

Definition

Namespace: Avalonia.Animation
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public class CompositePageTransition : IPageTransition
View Source
InheritanceObject → CompositePageTransition
ImplementsIPageTransition

Remarks

Instantiate the CompositePageTransition in XAML and initialize the Transitions property in order to have many animations triggered at once. For example, you can combine CrossFade and PageSlide.

C#

<reactiveUi:RoutedViewHost Router="{Binding Router}">
<reactiveUi:RoutedViewHost.PageTransition>
<CompositePageTransition>
<PageSlide Duration="0.5" />
<CrossFade Duration="0.5" />
</CompositePageTransition>
</reactiveUi:RoutedViewHost.PageTransition>
</reactiveUi:RoutedViewHost>

Constructors

CompositePageTransition()Initializes a new instance of the CompositePageTransition class

Properties

PageTransitionsGets or sets the transitions to be executed. Can be defined from XAML.

Methods

Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
Finalize()Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCode()Serves as the default hash function.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
MemberwiseClone()Creates a shallow copy of the current Object.
(Inherited from Object)
Start(Visual, Visual, Boolean, CancellationToken)Starts the animation.
ToString()Returns a string that represents the current object.
(Inherited from Object)

See Also

Reference

Avalonia.Animation Namespace