Table of Contents

Class PopoverBaseImpl

Namespace
Terminal.Gui.App
Assembly
Terminal.Gui.dll

Abstract base class for popover views in Terminal.Gui. Implements IPopover.

public abstract class PopoverBaseImpl : View, IDisposable, ISupportInitializeNotification, ISupportInitialize, IPopover
Inheritance
PopoverBaseImpl
Implements
Derived
Inherited Members
Extension Methods

Remarks

IMPORTANT: Popovers must be registered with Popover using Register(IPopover?) before they can be shown.

Requirements:
Derived classes must:

Default Behavior:
This base class provides:

  • Fills the screen by default (Width = Fill(), Height = Fill()).
  • Transparent viewport settings for proper mouse event handling.
  • Automatic layout when becoming visible.
  • Focus restoration when hidden.
  • Default Quit implementation that hides the popover.

Lifecycle:
Use Show(IPopover?) to display and Hide(IPopover?) or set Visible to false to hide.

Constructors

PopoverBaseImpl()

Initializes a new instance of the PopoverBaseImpl class.

Properties

Current

Gets or sets the IRunnable that this popover is associated with.

Methods

OnVisibleChanging()

Called when the Visible property is changing. Handles layout and focus management.