Table of Contents

Class MudStack

Namespace
MudBlazor
Assembly
MudBlazor.dll
public class MudStack : MudComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged
Inheritance
MudStack
Implements
Inherited Members
Extension Methods

Constructors

MudStack()

public MudStack()

Properties

AlignItems

Defines the alignment of children along the cross axis within a MudStack component.

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

Property Value

AlignItems?

ChildContent

Child content of the component.

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

Property Value

RenderFragment

Classname

protected string Classname { get; }

Property Value

string

Justify

Defines the distribution of children along the main axis within a MudStack component.

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

Property Value

Justify?

Reverse

Reverses the order of its items.

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

Property Value

bool

Row

If true, items will be placed horizontally in a row instead of vertically.

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

Property Value

bool

Spacing

The gap between items, measured in increments of 4px.
Maximum is 20.
Default is 3.

[Parameter]
[Category("Behavior")]
public int Spacing { get; set; }

Property Value

int

StretchItems

Defines the stretching behaviour of children along the main axis within a MudStack component.

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

Property Value

StretchItems?

Remarks

Note: This property affects children of the MudStack component. If there is only one child, Start and End will have the same effect, and the child will be stretched. Middle stretches all children except the first and last child. If there are two or fewer elements, Middle will have no effect.

Wrap

Defines the flexbox wrapping behavior of its items.

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

Property Value

Wrap?

Methods

BuildRenderTree(RenderTreeBuilder)

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder