Class ScaffoldToolbarItemsView
- Namespace
- Nalu
- Assembly
- Nalu.Maui.Scaffold.dll
The nav bar's rendering of the page's ToolbarItems: primary items (Primary and Default) as ScaffoldToolbarItemButtons in ascending Priority — as many as FIT the width the bar offers; the rest fold into the ScaffoldToolbarOverflowButton's menu ahead of the Secondary items (Android's "if room" semantics; MAUI's native bars squeeze the title instead). Follows the collection live — items added, removed, reordered or moved between surfaces at runtime are reflected at once. Drop it anywhere inside a custom nav bar — it binds to the inherited ScaffoldNavBarContext and fits whatever width its host measures it with.
public sealed class ScaffoldToolbarItemsView : Layout, INotifyPropertyChanged, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IAnimatable, IViewController, IVisualElementController, IElementController, IGestureController, IGestureRecognizers, IPropertyMapperView, IHotReloadableView, IReplaceableView, ILayout, IView, IElement, ITransform, IContainer, IList<IView>, ICollection<IView>, IEnumerable<IView>, IEnumerable, ISafeAreaView, IPadding, ICrossPlatformLayout, IBindableLayout, IVisualTreeElement
- Inheritance
-
ScaffoldToolbarItemsView
- Implements
- Inherited Members
- Extension Methods
Constructors
ScaffoldToolbarItemsView()
Initializes the strip.
public ScaffoldToolbarItemsView()
Methods
CreateLayoutManager()
Creates a manager object that can measure this layout and arrange its children.
protected override ILayoutManager CreateLayoutManager()
Returns
- ILayoutManager
An object that implements ILayoutManager that manages this layout.
OnBindingContextChanged()
Invoked whenever the binding context of the View changes.
protected override void OnBindingContextChanged()
Remarks
This method can be overridden to add class handling for this event. Overrides must call the base method.