Skip to content

StackPanel class

Defined in

Namespace: CrissCross.Avalonia.UI.Controls Assembly: CrissCross.Avalonia.UI.dll Full name: CrissCross.Avalonia.UI.Controls.StackPanel Modifiers: public

Summary

        Arranges child elements into a single line that can be oriented horizontally or vertically.
        

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net471

Class hierarchy
classDiagram
class StackPanel
class StackPanel
StackPanel <|-- StackPanel

Inherits from: StackPanel

Remarks

Use StackPanel to create layouts where child controls are stacked in a single direction. The orientation can be set to either horizontal or vertical, allowing for flexible UI arrangements. StackPanel does not wrap its content; if the combined size of its children exceeds the available space, the content may be clipped. For layouts that require wrapping, consider using a different panel such as WrapPanel.

Constructors

NameSummary
.ctor

Derived types

Inherited members