Table of Contents

Class ScaffoldFlyoutMenuGroupHeader

Namespace
Nalu
Assembly
Nalu.Maui.Scaffold.dll

A multi-root area's group header in the default drawer menu: its text-only Title (binding context = the area). Style it with <Style TargetType="nalu:ScaffoldFlyoutMenuGroupHeader">.

public sealed class ScaffoldFlyoutMenuGroupHeader : Grid, INotifyPropertyChanged, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IAnimatable, IViewController, IVisualElementController, IElementController, IGestureController, IGestureRecognizers, IPropertyMapperView, IHotReloadableView, IReplaceableView, IBindableLayout, IVisualTreeElement, IGridLayout, ILayout, IView, IElement, ITransform, IContainer, IList<IView>, ICollection<IView>, IEnumerable<IView>, IEnumerable, ISafeAreaView, IPadding, ICrossPlatformLayout
Inheritance
ScaffoldFlyoutMenuGroupHeader
Implements
Inherited Members
Extension Methods

Remarks

It hosts the label rather than deriving from it: a value assigned in a constructor is a MANUAL value and outranks every style setter, so the defaults below live on properties this type owns — which a style can then override.

Constructors

ScaffoldFlyoutMenuGroupHeader()

Initializes the group header.

public ScaffoldFlyoutMenuGroupHeader()

Fields

FontAttributesProperty

Bindable property for FontAttributes.

public static readonly BindableProperty FontAttributesProperty

Field Value

BindableProperty

FontFamilyProperty

Bindable property for FontFamily.

public static readonly BindableProperty FontFamilyProperty

Field Value

BindableProperty

FontSizeProperty

Bindable property for FontSize.

public static readonly BindableProperty FontSizeProperty

Field Value

BindableProperty

HeaderPaddingProperty

Bindable property for HeaderPadding.

public static readonly BindableProperty HeaderPaddingProperty

Field Value

BindableProperty

TextColorProperty

Bindable property for TextColor.

public static readonly BindableProperty TextColorProperty

Field Value

BindableProperty

Properties

FontAttributes

Gets or sets the header font attributes.

public FontAttributes FontAttributes { get; set; }

Property Value

FontAttributes

FontFamily

Gets or sets the header font family.

public string? FontFamily { get; set; }

Property Value

string

FontSize

Gets or sets the header font size.

public double FontSize { get; set; }

Property Value

double

HeaderPadding

Gets or sets the padding around the header text. Drives the inner label's padding — style THIS, not Padding.

public Thickness HeaderPadding { get; set; }

Property Value

Thickness

TextColor

Gets or sets the header text color.

public Color TextColor { get; set; }

Property Value

Color

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.