Class ScaffoldNavBarTitle
- Namespace
- Nalu
- Assembly
- Nalu.Maui.Scaffold.dll
The nav bar title: renders the current page's TitleViewProperty content when set, the page Title otherwise. Drop it anywhere inside a custom nav bar — it binds to the inherited ScaffoldNavBarContext.
public sealed class ScaffoldNavBarTitle : 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
-
ScaffoldNavBarTitle
- Implements
- Inherited Members
- Extension Methods
Constructors
ScaffoldNavBarTitle()
Initializes the title presenter.
public ScaffoldNavBarTitle()
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
TextColorProperty
Bindable property for TextColor.
public static readonly BindableProperty TextColorProperty
Field Value
Properties
FontAttributes
Gets or sets the title font attributes.
public FontAttributes FontAttributes { get; set; }
Property Value
FontFamily
Gets or sets the title font family.
public string? FontFamily { get; set; }
Property Value
FontSize
Gets or sets the title font size.
public double FontSize { get; set; }
Property Value
TextColor
Gets or sets the title color. When not set (directly or via style), the effective TitleForeground applies, then Foreground, then the built-in default.
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.