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)
- C#
- VB
- F#
public class CompositePageTransition : IPageTransition
Public Class CompositePageTransition
	Implements IPageTransition
type CompositePageTransition = 
    class
        interface IPageTransition
    end
| 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>
Constructors
| CompositePageTransition() | Initializes a new instance of the CompositePageTransition class | 
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) | 
| 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) |