Class MudContainer
- Namespace
- MudBlazor
- Assembly
- MudBlazor.dll
public class MudContainer : MudComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged
- Inheritance
-
MudContainer
- Implements
- Inherited Members
- Extension Methods
Constructors
MudContainer()
public MudContainer()
Properties
ChildContent
Child content of component.
[Parameter]
[Category("Behavior")]
public RenderFragment? ChildContent { get; set; }
Property Value
Classname
protected string Classname { get; }
Property Value
Fixed
Set the max-width to match the min-width of the current breakpoint. This is useful if you'd prefer to design for a fixed set of sizes instead of trying to accommodate a fully fluid viewport. It's fluid by default.
[Parameter]
[Category("Behavior")]
public bool Fixed { get; set; }
Property Value
Gutters
Adds left and right padding to the container itself.
[Parameter]
[Category("Behavior")]
public bool Gutters { get; set; }
Property Value
Remarks
Default is true
.
MaxWidth
Determine the max-width of the container. The container width grows with the size of the screen. Set to false to disable maxWidth.
[Parameter]
[Category("Behavior")]
public MaxWidth MaxWidth { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder