Table of Contents

Constructor PopoverMenu

Namespace
Terminal.Gui.Views
Assembly
Terminal.Gui.dll

PopoverMenu()

Initializes a new instance of the PopoverMenu class.

public PopoverMenu()

PopoverMenu(IEnumerable<View>?)

Initializes a new instance of the PopoverMenu class. If any of the elements of menuItems is null, a Line will be created instead.

public PopoverMenu(IEnumerable<View>? menuItems)

Parameters

menuItems IEnumerable<View>

The views to use as menu items. Null elements become separator lines.

Remarks

Remember to call Register(IPopover?) before calling MakeVisible(Point?).

PopoverMenu(IEnumerable<MenuItem>?)

Initializes a new instance of the PopoverMenu class with the specified menu items.

public PopoverMenu(IEnumerable<MenuItem>? menuItems)

Parameters

menuItems IEnumerable<MenuItem>

The menu items to display in the popover.

Remarks

Remember to call Register(IPopover?) before calling MakeVisible(Point?).

PopoverMenu(Menu?)

Initializes a new instance of the PopoverMenu class with the specified root Menu.

public PopoverMenu(Menu? root)

Parameters

root Menu

The root menu that contains the top-level menu items.

Remarks

Remember to call Register(IPopover?) before calling MakeVisible(Point?).