LayoutView Class

Definition

Displays the specified content inside the specified layout and any further nested layouts.

C#
public class LayoutView : Microsoft.AspNetCore.Components.IComponent
Inheritance
LayoutView
Implements

Constructors

Properties

ChildContent

Gets or sets the content to display.

Layout

Gets or sets the type of the layout in which to display the content. The type must implement IComponent and accept a parameter named Body.

Methods

Attach(RenderHandle)

Attaches the component to a RenderHandle.

SetParametersAsync(ParameterView)

Sets parameters supplied by the component's parent in the render tree.

Applies to

Product Versions
ASP.NET Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0