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
stylesheetStylesheetThe stylesheet to use for styling this panel.
styleNamestringThe 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
styleNamestringThe 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
styleWidgetStyleThe 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
availableSizePointThe available size for measurement.
Returns
- Point
The largest size required by any child control.