Class ScaffoldNavBarButtonBase
- Namespace
- Nalu
- Assembly
- Nalu.Maui.Scaffold.dll
Base of the nav bar glyph buttons: a fixed 44dp tap target hosting a Nalu-drawn stroke glyph (or a user icon), visibility and command bound to the inherited ScaffoldNavBarContext.
public abstract class ScaffoldNavBarButtonBase : 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
-
ScaffoldNavBarButtonBase
- Implements
- Derived
- Inherited Members
- Extension Methods
Remarks
Style the concrete buttons directly, or all of them at once with
<Style TargetType="nalu:ScaffoldNavBarButtonBase" ApplyToDerivedTypes="True">.
Fields
IconColorProperty
Bindable property for IconColor.
public static readonly BindableProperty IconColorProperty
Field Value
IconProperty
Bindable property for Icon.
public static readonly BindableProperty IconProperty
Field Value
PressedBrushProperty
Bindable property for PressedBrush.
public static readonly BindableProperty PressedBrushProperty
Field Value
Properties
Icon
Gets or sets an icon replacing the built-in drawn glyph (rendered untinted).
public ImageSource? Icon { get; set; }
Property Value
IconColor
Gets or sets the built-in glyph color (ignored while Icon is set). When not set (directly or via style), the effective Foreground applies.
public Color IconColor { get; set; }
Property Value
PressedBrush
Gets or sets the press-feedback brush (a circular pulse filling the 44dp tap target). When not set, a translucent tint of the effective glyph color is used.
public Brush? PressedBrush { get; set; }
Property Value
Methods
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.