pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: https://docs.telerik.com/aspnet-core/html-helpers/layout/stacklayout/overview

"restype" content="documentation" data-gatsby-head="true"/>ASP.NET Core Layout StackLayout Overview - Telerik UI for ASP.NET Core
New to Telerik UI for ASP.NET CoreStart a free 30-day trial

StackLayout Overview

The ASP.NET Core StackLayout is a component that easily aligns multiple elements in a vertical or horizontal order.

The StackLayout is supported only when you use Kendo UI themes.

Initializing the StackLayout

Use the Stack HtmlHelper or TagHelper to add the component and set the desired options:

  • Set the Width and Height for the component.
  • Set the Orientation to control the layout of the component.
  • Add the desired content. Each immediate child element will represent one stack layout item.

The following example demonstrates how to initialize a StackLayout component:

Razor
    @(Html.Kendo().StackLayout()
        .Name("stacklayout")
        .Width("100%")
        .Height("100%")
        .Orientation(StackLayoutOrientation.Horizontal)
        .Items(i=>{
            i.Add().Content(@<text>
                    <div style="background-color: aqua;">
                        Aqua colored stack item
                    </div>
                </text>);
            i.Add().Content(@<text>
                    <div style="background-color: cornflowerblue;">
                        Cornflowerblue colored stack item
                    </div>
                </text>);
            i.Add().Content(@<text>
                    <div style="background-color: blue;">
                        Blue colored stack item
                    </div>
                </text>);
        })
    )

Functionality and Features

  • Layout—To control the appearance of the component, you can use the built-in layout configuration.
  • Width and Height—The Width and Height configuration properties allow you to adjust the dimensions of the StackLayout component.

Next Steps

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy