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
ChildContent
Child content of the component.
[Parameter]
[Category("Behavior")]
public RenderFragment? ChildContent { get; set; }
Property Value
Classname
protected string Classname { get; }
Property Value
Justify
Defines the distribution of children along the main axis within a MudStack component.
[Parameter]
[Category("Behavior")]
public Justify? Justify { get; set; }
Property Value
Reverse
Reverses the order of its items.
[Parameter]
[Category("Behavior")]
public bool Reverse { get; set; }
Property Value
Row
If true, items will be placed horizontally in a row instead of vertically.
[Parameter]
[Category("Behavior")]
public bool Row { get; set; }
Property Value
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
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
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