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

Definition

Constructors

C#
public StackLayout(ViewContext viewContext, IJavaScriptInitializer initializer)
Parameters:viewContextViewContextinitializerIJavaScriptInitializer

Properties

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; }
C#
public string InLineStyle { get; }
C#
public bool IsHorizontal { get; }

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

Writes the HTML.

C#
protected override void WriteHtml(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

Overrides: WidgetBase.WriteHtml(HtmlTextWriter)