Class ScaffoldToolbarOverflowView
- Namespace
- Nalu
- Assembly
- Nalu.Maui.Scaffold.dll
The overflow menu of the default nav bar: a rounded panel listing the page's Secondary toolbar items as rows (icon when set, then text), by ascending Priority. A row dismisses the menu first, then activates its item; disabled items are dimmed and inert. Built fresh on every open.
public sealed class ScaffoldToolbarOverflowView : Border, INotifyPropertyChanged, IVisualTreeElement, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IAnimatable, IViewController, IVisualElementController, IElementController, IGestureController, IGestureRecognizers, IPropertyMapperView, IHotReloadableView, IReplaceableView, IBorderView, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout, IBorderStroke, IStroke
- Inheritance
-
ScaffoldToolbarOverflowView
- Implements
- Inherited Members
- Extension Methods
Remarks
Instances are created by ScaffoldToolbarOverflowButton — the type is public purely as a styling surface. Unstyled, the panel background and the text follow the app theme (light / dark); a style pins them:
<Style TargetType="nalu:ScaffoldToolbarOverflowView">
<Setter Property="PanelBackground" Value="{AppThemeBinding Light=..., Dark=...}" />
<Setter Property="TextColor" Value="{AppThemeBinding Light=..., Dark=...}" />
</Style>
Font icons declared without a color take the effective text color; other icons render as given.
The panel hugs its widest row, between MinimumWidthRequest (200) and MaximumWidthRequest (280) — both plain properties, style them to change the bounds.
Fields
FontFamilyProperty
Bindable property for FontFamily.
public static readonly BindableProperty FontFamilyProperty
Field Value
FontSizeProperty
Bindable property for FontSize.
public static readonly BindableProperty FontSizeProperty
Field Value
PanelBackgroundProperty
Bindable property for PanelBackground.
public static readonly BindableProperty PanelBackgroundProperty
Field Value
PanelCornerRadiusProperty
Bindable property for PanelCornerRadius.
public static readonly BindableProperty PanelCornerRadiusProperty
Field Value
PanelShadowProperty
Bindable property for PanelShadow.
public static readonly BindableProperty PanelShadowProperty
Field Value
ScrimProperty
Bindable property for Scrim.
public static readonly BindableProperty ScrimProperty
Field Value
TextColorProperty
Bindable property for TextColor.
public static readonly BindableProperty TextColorProperty
Field Value
Properties
FontFamily
Gets or sets the row font family.
public string? FontFamily { get; set; }
Property Value
FontSize
Gets or sets the row font size.
public double FontSize { get; set; }
Property Value
PanelBackground
Gets or sets the panel background. Null (the default) follows the app theme — a
near-opaque white in light mode, a near-opaque dark gray in dark mode. Drives the view's
own Background — style THIS, not Background.
public Brush? PanelBackground { get; set; }
Property Value
PanelCornerRadius
Gets or sets the panel corner radius.
public double PanelCornerRadius { get; set; }
Property Value
PanelShadow
Gets or sets the panel shadow.
public Shadow PanelShadow { get; set; }
Property Value
Scrim
Gets or sets the scrim brush behind the menu — transparent by default (a dropdown), yet still blocking interaction with everything below and closing the menu on tap.
public Brush? Scrim { get; set; }
Property Value
TextColor
Gets or sets the row text (and untinted-font-icon) color. Null (the default) follows the app theme — near-black in light mode, near-white in dark mode.
public Color? TextColor { get; set; }