Class PopoverBaseImpl
Abstract base class for popover views in Terminal.Gui.
public abstract class PopoverBaseImpl : View, IDisposable, ISupportInitializeNotification, ISupportInitialize, IPopover
- Inheritance
-
PopoverBaseImpl
- Implements
- Derived
- Inherited Members
- Extension Methods
Remarks
Popover Lifecycle:
To display a popover, use Show(IPopover?). To hide a popover, either call
Hide(IPopover?),
set Visible to false, or show another popover.
Focus and Input:
When visible, a popover receives focus and input events. If the user clicks outside the popover (and not on a
subview),
presses QuitKey, or another popover is shown, the popover will be hidden
automatically.
Layout:
When the popover becomes visible, it is automatically laid out to fill the screen by default. You can override
this behavior
by setting Width and Height in your derived class.
Mouse:
Popovers are transparent to mouse events (see TransparentMouse),
meaning mouse events in a popover that are not also within a subview of the popover will not be captured.
Custom Popovers:
To create a custom popover, inherit from PopoverBaseImpl and add your own content and logic.
Constructors
- PopoverBaseImpl()
Initializes a new instance of the PopoverBaseImpl class.
Properties
- Current
Gets or sets the Current that this Popover is associated with. If null, it is not associated with any Toplevel and will receive all keyboard events from the IApplication. If set, it will only receive keyboard events the Toplevel would normally receive. When Register(IPopover?) is called, the Current is set to the current TopRunnable if not already set.
Methods
- OnVisibleChanging()
Called when the Visible property is changing.