Summary
Defines a composite page transition that can be used to combine multiple transitions.
- Namespace
- Avalonia
.Animation - Interfaces
- Base Types
-
- object
graph BT
Type-->Base0["object"]
Type-.->Interface0["IPageTransition"]
click Interface0 "/api/Avalonia.Animation/IPageTransition"
Type["CompositePageTransition"]
class Type type-node
Syntax
public class CompositePageTransition : 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
.
<reactiveUi:RoutedViewHost Router="{Binding Router}">
<reactiveUi:RoutedViewHost.PageTransition>
<CompositePageTransition>
<PageSlide Duration="0.5" />
<CrossFade Duration="0.5" />
</CompositePageTransition>
</reactiveUi:RoutedViewHost.PageTransition>
</reactiveUi:RoutedViewHost>
Properties
Name | Value | Summary |
---|---|---|
PageTransitions | List |
Gets or sets the transitions to be executed. Can be defined from XAML.
|
Methods
Name | Value | Summary |
---|---|---|
Start |
Task |
Starts the animation.
|