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) Version: 11.3.999
public class CompositePageTransition : IPageTransition
Inheritance
Object    CompositePageTransition
Implements
IPageTransition

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>

Properties

PageTransitions Gets 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)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Start(Visual, Visual, Boolean, CancellationToken) Starts the animation.
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also