New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Telerik UI for ASP.NET Core StackLayout component

Definition

Constructors

Initializes a new instance of the StackLayout class.

C#
public StackLayout(ViewContext viewContext)
Parameters:viewContextViewContext

Properties

DeferredStyleString member.

C#
public string DeferredStyleString { get; set; }

Defines the height of the stack container. Accepts css unit value (ex: 800px).

C#
public string Height { get; set; }

Defines the horizontal align of the items in the stack. Default value is Stretch.

C#
public HorizontalAlign HorizontalAlign { get; set; }

Defines the items of the StackLayout

C#
public List<StackLayoutContainer> Items { get; set; }

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

C#
public StackLayoutOrientation Orientation { get; set; }

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

C#
public string Spacing { get; set; }

Defines the vertical align of the items in the stack. Default value is Stretch.

C#
public VerticalAlign VerticalAlign { get; set; }

Defines the width of the stack container. Accepts css unit value (ex: 500px).

C#
public string Width { get; set; }

Methods

AppendStyle method.

C#
public void AppendStyle(string uid, string style)
Parameters:uidstringstylestring

Writes the HTML content.

C#
protected override void WriteHtml(TextWriter writer)
Parameters:writerTextWriter

The text writer.

Overrides: WidgetBase.WriteHtml(TextWriter)

WriteInitializationScript method.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

Overrides: WidgetBase.WriteInitializationScript(TextWriter)