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
FontFamilyProperty
Bindable property for FontFamily.
public static readonly BindableProperty FontFamilyProperty
Field Value
FontSizeProperty
Bindable property for FontSize.
public static readonly BindableProperty FontSizeProperty
Field Value
HeaderPaddingProperty
Bindable property for HeaderPadding.
public static readonly BindableProperty HeaderPaddingProperty
Field Value
TextColorProperty
Bindable property for TextColor.
public static readonly BindableProperty TextColorProperty
Field Value
Properties
FontAttributes
Gets or sets the header font attributes.
public FontAttributes FontAttributes { get; set; }
Property Value
FontFamily
Gets or sets the header font family.
public string? FontFamily { get; set; }
Property Value
FontSize
Gets or sets the header font size.
public double FontSize { get; set; }
Property Value
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
TextColor
Gets or sets the header text color.
public Color TextColor { 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.