NamedFrame

DrawablePanelContainerControlBindableWidgetWidget
public class NamedFrame : Drawable
Implements a foldable panel for Eto controls.

Constructors

NamedFrame

#
public NamedFrame(string label, params Control[] controls)
Create a new control frame.
label (string)Label text for frame.
controls (params Control[])Controls to host.

Fields

FullLabel

#
public const int FullLabel = 12
Gets the height of the label text.

HalfLabel

#
public const int HalfLabel = 6
Gets half the label height.

Radius

#
public const int Radius = 3
Gets the radius of the rounded frame corners.

Properties

FrameControls

#
public IEnumerable<Control> FrameControls { get; }
Enumerate over the controls shown in this frame.

FrameHeight

#
public int FrameHeight { get; }
Gets the height of this control when fully expanded (unfolded).

LabelText

#
public string LabelText { get; }
Gets the label text for this frame.

Styling

#
public FrameStyling Styling { get; set; }
Gets or sets the styling of the frame.

Methods

AddControls

#
public void AddControls(params Control[] controls)
Add a bunch of controls to the bottom of the stack in the layout.
controls (params Control[])

OnPaint

#
protected override void OnPaint(PaintEventArgs e)
e (PaintEventArgs)
Drawable.OnPaint

ReplaceControls

#
public void ReplaceControls(params Control[] controls)
Replace all controls in this panel with a new set.
controls (params Control[])