Popovers Deep Dive
Normally Views cannot draw outside of their Viewport. Options for influencing content outside of the Viewport include:
- Modifying the
Borderbehavior - Modifying the
Marginbehavior - Using Popover
Popovers are useful for scenarios such as menus, autocomplete popups, and drop-down combo boxes.
A Popover is any View that meets these characteristics:
- Implements the IPopover interface
- Is Focusable (
CetFocus = true) - Is Transparent (
ViewportSettings = ViewportSettings.Transparent | ViewportSettings.TransparentMouse - Sets
Visible = falsewhen it receivesApplication.QuitKey
PopoverMenu provides a sophisticated implementation that can be used as a context menu and is the basis for @Terminal.Gui.MenuBarv2.