Table of Contents

Class MudAppBar

Namespace
MudBlazor
Assembly
MudBlazor.dll

Represents a bar used to display actions, branding, navigation and screen titles.

public class MudAppBar : MudComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged
Inheritance
MudAppBar
Implements
Derived
Inherited Members
Extension Methods

Remarks

This component is often used to keep important information persistent while browsing different pages to ease navigation and access to actions for users.

Constructors

MudAppBar()

public MudAppBar()

Properties

Bottom

Places the appbar at the bottom of the screen instead of the top.

[Parameter]
[Category("Behavior")]
public bool Bottom { get; set; }

Property Value

bool

ChildContent

The content within this component.

[Parameter]
[Category("Behavior")]
public RenderFragment? ChildContent { get; set; }

Property Value

RenderFragment

Classname

protected string Classname { get; }

Property Value

string

Color

The color of this appbar.

[Parameter]
[Category("Appearance")]
public Color Color { get; set; }

Property Value

Color

Remarks

Defaults to Default. Theme colors are supported.

Contextual

Allows the app bar to be overridden with page specific actions

[Parameter]
[Category("Behavior")]
public bool Contextual { get; set; }

Property Value

bool

Remarks

Defaults to false. When true, can be overridden by MudContextualActionBar

Dense

Uses compact padding.

[Parameter]
[Category("Appearance")]
public bool Dense { get; set; }

Property Value

bool

Remarks

Defaults to false.

Elevation

The size of the drop shadow.

[Parameter]
[Category("Appearance")]
public int Elevation { get; set; }

Property Value

int

Remarks

Defaults to 4. A higher number creates a heavier drop shadow. Use a value of 0 for no shadow.

Fixed

Fixes this appbar in place as the page is scrolled.

[Parameter]
[Category("Behavior")]
public bool Fixed { get; set; }

Property Value

bool

Remarks

Defaults to true. When false, the appbar will scroll with other page content.

Gutters

Adds left and right padding to this appbar.

[Parameter]
[Category("Appearance")]
public bool Gutters { get; set; }

Property Value

bool

Remarks

Defaults to true.

ToolBarClass

The CSS classes applied to the nested toolbar.

[Parameter]
[Category("Appearance")]
public string? ToolBarClass { get; set; }

Property Value

string

Remarks

Defaults to null. You can use spaces to separate multiple classes.

ToolBarClassname

protected string ToolBarClassname { get; }

Property Value

string

WrapContent

Allows appbar content to wrap.

[Parameter]
[Category("Behavior")]
public bool WrapContent { get; set; }

Property Value

bool

Remarks

Defaults to false.

Methods

BuildRenderTree(RenderTreeBuilder)

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

See Also