Popup is an overlay surface used for dropdowns, context menus, and lightweight transient UI.
Popups close when focus is lost or when the user clicks outside (depending on configuration).
Popups can be positioned relative to:
Popup.Anchor), orPopup.AnchorRect).AnchorRect is primarily used for point-based popups such as context menus (right-click), where there is no natural anchor
visual to align to.
Select<T> uses a popup for its dropdown list.ContextMenu uses a popup anchored to the click position.SearchReplacePopup uses a popup-like overlay anchored within an editor.Popups participate in focus. Common dismissal patterns:
Escape,When you show a popup from a control, keep the focus rules explicit: decide whether focus should move into the popup (typical for menus) or remain on the originating control (typical for passive tooltips).
HorizontalAlignment = Align.Start, VerticalAlignment = Align.Start