namespace Terminal.Gui.Views;
///
/// Provides a cascading menu that pops over all other content. Can be used as a context menu or a drop-down
/// all other content. Can be used as a context menu or a drop-down
/// menu as part of as part of .
///
///
///
/// To use as a context menu, register the popover menu with and call
/// .
///
///
public class PopoverMenu : PopoverBaseImpl, IDesignable
{
///
/// Initializes a new instance of the class.
///
public PopoverMenu () : this ((Menu?)null) { }
///
/// Initializes a new instance of the class. If any of the elements of
/// is ,
/// a see will be created instead.
///
public PopoverMenu (IEnumerable? menuItems) : this (
new Menu (menuItems?.Select (item => item ?? new Line ()))
{
Title = "Popover Root"
})
{ }
///
public PopoverMenu (IEnumerable