Class PopoverBaseImpl
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:
- Set ViewportSettings to include Transparent and TransparentMouse.
- Add a key binding for Quit (typically bound to QuitKey).
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
Methods
- OnVisibleChanging()
Called when the Visible property is changing. Handles layout and focus management.