Class
TelerikStackLayout

A component that arranges child content in a horizontal or vertical stack with configurable spacing and alignment. Control item spacing via Spacing, container dimensions with Width and Height, orientation through StackLayoutOrientation (Horizontal/Vertical), and alignment using HorizontalAlign and VerticalAlign. Provide content with ChildContent.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

cs-api-definition
public class TelerikStackLayout : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentTelerikStackLayout

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members BaseComponent.ShouldRender()BaseComponent.OnInitializedAsync()BaseComponent.OnAfterRenderAsync(bool)BaseComponent.Dispose()BaseComponent.InitLocalizer()BaseComponent.ThrowIfParameterIsNull(object, string)BaseComponent.HaveOptionsChanged(IDictionary<string, object>, IDictionary<string, object>)BaseComponent.GetClassString(params string[])BaseComponent.InvokeAsync<T>(string, params object[])BaseComponent.InvokeAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidAsync(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidComponentMethodAsync(string, params object[])BaseComponent.InvokeComponentVoidMethodAsync(string, object)BaseComponent.InvokeDisposeAsync()BaseComponent.StateHasChanged()BaseComponent.RootComponentBaseComponent.ClassComponentBase.OnInitialized()ComponentBase.OnParametersSet()ComponentBase.OnParametersSetAsync()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)ComponentBase.SetParametersAsync(ParameterView)

Constructors

TelerikStackLayout()

Declaration

cs-api-definition
public TelerikStackLayout()

Properties

ChildContent

Defines the content of the StackLayout.

Declaration

cs-api-definition
[Parameter]
public RenderFragment ChildContent { get; set; }

Property Value

RenderFragment

Height

Defines the height of the stack container as a CSS value.

Declaration

cs-api-definition
[Parameter]
public string Height { get; set; }

Property Value

string

HorizontalAlign

Defines the horizontal alignment of the items in the stack. The default value is Stretch. The possible options are Left, Right, Center and Stretch.

Declaration

cs-api-definition
[Parameter]
public StackLayoutHorizontalAlign HorizontalAlign { get; set; }

Property Value

StackLayoutHorizontalAlign

Orientation

Defines the orientation of the items in the stack. Default value is Horizontal.

Declaration

cs-api-definition
[Parameter]
public StackLayoutOrientation Orientation { get; set; }

Property Value

StackLayoutOrientation

Spacing

Defines the spacing between items in the stack. Accepts css unit value (ex: 10px).

Declaration

cs-api-definition
[Parameter]
public string Spacing { get; set; }

Property Value

string

VerticalAlign

Defines the vertical alignment of the items in the stack. The default value is Stretch. The possible vertical align options are Top, Bottom, Center and Stretch.

Declaration

cs-api-definition
[Parameter]
public StackLayoutVerticalAlign VerticalAlign { get; set; }

Property Value

StackLayoutVerticalAlign

Width

Defines the width of the stack container as a CSS value.

Declaration

cs-api-definition
[Parameter]
public string Width { get; set; }

Property Value

string

Methods

BuildRenderTree(RenderTreeBuilder)

Declaration

cs-api-definition
protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder

RenderTreeBuilder

Overrides ComponentBase.BuildRenderTree(RenderTreeBuilder)