Class ThemeScrollValueExtension
- Namespace
- Nalu
- Assembly
- Nalu.Maui.Scaffold.dll
The theme-aware ScrollValueExtension: endpoints are declared per app theme
and a theme change re-evaluates the value immediately —
Background="{nalu:ThemeScrollValue FromLight=Transparent, ToLight=White, ToDark=Black}"
(dark endpoints fall back to the light ones when omitted).
[RequireService(new Type[] { typeof(IProvideValueTarget) })]
public sealed class ThemeScrollValueExtension : ScrollValueExtensionBase, IMarkupExtension<BindingBase>, IMarkupExtension
- Inheritance
-
ThemeScrollValueExtension
- Implements
- Inherited Members
Properties
FromDark
Gets or sets the dark-theme value at RampStart (falls back to FromLight).
public object? FromDark { get; set; }
Property Value
FromLight
Gets or sets the light-theme value at RampStart (held below it unless Extend).
public object? FromLight { get; set; }
Property Value
ToDark
Gets or sets the dark-theme value at RampEnd (falls back to ToLight).
public object? ToDark { get; set; }
Property Value
ToLight
Gets or sets the light-theme value at RampEnd (held above it unless Extend).
public object? ToLight { get; set; }