Table of Contents

Class MBTopAppBar

Namespace
Material.Blazor
Assembly
Material.Blazor.dll

A Material Theme top app bar

public class MBTopAppBar : ComponentFoundation, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance
MBTopAppBar
Implements
Inherited Members

Constructors

MBTopAppBar()

public MBTopAppBar()

Properties

ChildContent

Render fragment where @Body is referenced.

[Parameter]
public RenderFragment ChildContent { get; set; }

Property Value

RenderFragment

IconFoundry

The foundry to use for both leading and trailing icons.

IconFoundry="IconHelper.MIIcon()"

IconFoundry="IconHelper.FAIcon()"

IconFoundry="IconHelper.OIIcon()"

Overrides IconFoundryName

[Parameter]
public IMBIconFoundry IconFoundry { get; set; }

Property Value

IMBIconFoundry

NavIcon

Navigation button icon.

[Parameter]
public string NavIcon { get; set; }

Property Value

string

ScrollTarget

Page scroll target

[Parameter]
public string ScrollTarget { get; set; }

Property Value

string

Title

App bar title.

[Parameter]
public string Title { get; set; }

Property Value

string

TopAppBarType

Top app bar type. See MBTopAppBarType

[Parameter]
public MBTopAppBarType TopAppBarType { get; set; }

Property Value

MBTopAppBarType

Methods

BuildRenderTree(RenderTreeBuilder)

Renders the component to the supplied RenderTreeBuilder.

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

OnInitializedAsync()

Method invoked when the component is ready to start, having received its initial parameters from its parent in the render tree.

Override this method if you will perform an asynchronous operation and want the component to refresh when that operation is completed.

protected override Task OnInitializedAsync()

Returns

Task

A Task representing any asynchronous operation.