Class ScaffoldPageTransition
- Namespace
- Nalu
- Assembly
- Nalu.Maui.Scaffold.dll
Cross-platform, declarative push/pop page transition: Enter describes the incoming page's start state, Behind the covered page's end state. Declarative on purpose: both engines interpret it with native animators (iOS animation blocks, Android property animators), keeping every transition seekable and reversible — the pop (and the iOS interactive edge swipe) plays the SAME spec in reverse. Resolution order: page-attached PageTransitionProperty → SlideFromBottom for modal-mode pages → scaffold-level value → Default. The spec is resolved from the page that was PUSHED: it enters with it and leaves with it reversed.
public sealed record ScaffoldPageTransition : IEquatable<ScaffoldPageTransition>
- Inheritance
-
ScaffoldPageTransition
- Implements
- Inherited Members
Constructors
ScaffoldPageTransition(ScaffoldTransitionMotion, ScaffoldTransitionMotion, double)
Cross-platform, declarative push/pop page transition: Enter describes the incoming page's start state, Behind the covered page's end state. Declarative on purpose: both engines interpret it with native animators (iOS animation blocks, Android property animators), keeping every transition seekable and reversible — the pop (and the iOS interactive edge swipe) plays the SAME spec in reverse. Resolution order: page-attached PageTransitionProperty → SlideFromBottom for modal-mode pages → scaffold-level value → Default. The spec is resolved from the page that was PUSHED: it enters with it and leaves with it reversed.
public ScaffoldPageTransition(ScaffoldTransitionMotion Enter, ScaffoldTransitionMotion Behind, double DurationSeconds = 0.25)
Parameters
EnterScaffoldTransitionMotionThe incoming page's start state (animated to natural).
BehindScaffoldTransitionMotionThe covered page's end state (animated from natural).
DurationSecondsdoubleTransition duration in seconds. Defaults to 0.25.
Properties
Behind
The covered page's end state (animated from natural).
public ScaffoldTransitionMotion Behind { get; init; }
Property Value
Default
The stock navigation slide: the incoming page comes in from the right edge while the page behind counter-slides a third of the way out to the left.
public static ScaffoldPageTransition Default { get; }
Property Value
DurationSeconds
Transition duration in seconds. Defaults to 0.25.
public double DurationSeconds { get; init; }
Property Value
Enter
The incoming page's start state (animated to natural).
public ScaffoldTransitionMotion Enter { get; init; }
Property Value
IsAnimated
Whether this spec produces any visible animation.
public bool IsAnimated { get; }
Property Value
None
No animation: pages swap instantly.
public static ScaffoldPageTransition None { get; }
Property Value
SlideFromBottom
Modal presentation: slide up from the bottom edge; the behind page recedes slightly. The default for modal pages (PageModeProperty).
public static ScaffoldPageTransition SlideFromBottom { get; }
Property Value
SlideUpFade
Subtle slide-up + fade in; the behind page dims and recedes.
public static ScaffoldPageTransition SlideUpFade { get; }
Property Value
ZoomFade
Material-ish zoom: scale up + fade in; the behind page grows and dims.
public static ScaffoldPageTransition ZoomFade { get; }