Skip to content
Version 2.11.0
↓ Get the launcher

PanelElement record

A themed panel container: fills its area with the active theme’s menu background + a 1px border and lays out a single Child inside with uniform padding. Use it to give a borderless popup (e.g. a right-click context menu) a real panel look and to block click-through to whatever is behind.

public record PanelElement : IEquatable<HudElement>
name description
PanelElement(…) A themed panel container: fills its area with the active theme’s menu background + a 1px border and lays out a single Child inside with uniform padding. Use it to give a borderless popup (e.g. a right-click context menu) a real panel look and to block click-through to whatever is behind.
Child { get; set; } The content laid out inside the panel.
Padding { get; set; } Uniform inner padding in pixels.