Table of Contents

Class Panel

Namespace
Myra.Graphics2D.UI
Assembly
Myra.dll

A container that arranges all of its children at the same location, allowing them to overlap.

public class Panel : Container, IItemWithId, INotifyAttachedPropertyChanged, IContainer
Inheritance
Panel
Implements
Inherited Members

Constructors

Panel(Stylesheet, string)

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

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

Parameters

stylesheet Stylesheet

The stylesheet to use for styling this panel.

styleName string

The name of the style to apply to this panel.

Panel(string)

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

public Panel(string styleName = "")

Parameters

styleName string

The name of the style to apply to this panel.

Methods

ApplyStyle(WidgetStyle)

Applies the specified widget style to this panel.

protected override void ApplyStyle(WidgetStyle style)

Parameters

style WidgetStyle

The style to apply.

InternalArrange()

Arranges child controls at the same location in the panel bounds.

protected override void InternalArrange()

InternalMeasure(Point)

Measures the size required for all child controls in the panel.

protected override Point InternalMeasure(Point availableSize)

Parameters

availableSize Point

The available size for measurement.

Returns

Point

The largest size required by any child control.