mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
830 B
830 B
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 @Terminal.Gui.App.Application.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 @Terminal.Gui.App.IPopover interface
- Is Focusable (
CetFocus = true) - Is Transparent (
ViewportSettings = ViewportSettings.Transparent | ViewportSettings.TransparentMouse - Sets
Visible = falsewhen it receivesApplication.QuitKey
@Terminal.Gui.Views.PopoverMenu provides a sophisticated implementation that can be used as a context menu and is the basis for @Terminal.Gui.MenuBar.