Table of Contents

Class ScrollValueExtension

Namespace
Nalu
Assembly
Nalu.Maui.Scaffold.dll

Interpolates the target property from the page's scroll position: the value moves from From to To as ScrollOffset crosses the [RampStart, RampEnd] window (defaulting to the page-level ScrollRampStartProperty/ScrollRampEndProperty ramp). Works on numeric, bool, Color and Brush properties (solid or gradient brush endpoints; bools flip at the transition midpoint), on any element inside the scaffold's tree: Opacity="{nalu:ScrollValue From=0, To=1}". Must be applied directly on the target's bindable property — Style setters are not supported. For theme-dependent endpoints use ThemeScrollValueExtension.

[RequireService(new Type[] { typeof(IProvideValueTarget) })]
public sealed class ScrollValueExtension : ScrollValueExtensionBase, IMarkupExtension<BindingBase>, IMarkupExtension
Inheritance
ScrollValueExtension
Implements
Inherited Members

Properties

From

Gets or sets the value at RampStart (held below it unless Extend).

public object? From { get; set; }

Property Value

object

To

Gets or sets the value at RampEnd (held above it unless Extend).

public object? To { get; set; }

Property Value

object