Table of Contents

Class HorizontalStackPanel

Namespace
Myra.Graphics2D.UI
Assembly
Myra.dll

A stack panel that arranges children horizontally in a row.

public class HorizontalStackPanel : StackPanel, IItemWithId, INotifyAttachedPropertyChanged, IContainer
Inheritance
HorizontalStackPanel
Implements
Inherited Members

Constructors

HorizontalStackPanel(Stylesheet, string)

Initializes a new instance of the HorizontalStackPanel class with the specified stylesheet and style name.

public HorizontalStackPanel(Stylesheet stylesheet, string styleName = "")

Parameters

stylesheet Stylesheet

The stylesheet to use for applying the style.

styleName string

The name of the style to apply.

HorizontalStackPanel(string)

Initializes a new instance of the HorizontalStackPanel class with the specified style name.

public HorizontalStackPanel(string styleName = "")

Parameters

styleName string

The name of the style to apply.

Properties

Orientation

Gets the orientation of the stack panel, which is always horizontal.

public override Orientation Orientation { get; }

Property Value

Orientation