Skip to content

A Swiss Army knife for developers.

773 B
Raw Blame
@namespace DevToys.Blazor.Components.UIElements
@using DevToys.Api;
@inherits ComponentBase

<StackPanel id="@UIStack.Id"
            UseMaxHeight="@UIStack.UseMaxHeight"
            IsVisible="@UIStack.IsVisible"
            IsEnabled="@UIStack.IsEnabled"
            HorizontalAlignment="@UIStack.HorizontalAlignment"
            VerticalAlignment="@UIStack.VerticalAlignment"
            Orientation="@UIStack.Orientation"
            Spacing="@(UIStack.Spacing.ToPxInteger())">
    @if (UIStack.Children is not null)
    {
        for (int i = 0; i < UIStack.Children.Length; i++)
        {
            if (UIStack.Children[i] is not null)
            {
                <UIElementPresenter UIElement="@UIStack.Children[i]" />
            }
        }
    }
</StackPanel>