# PopupMenu class

Displays toolbar items in a popup menu.

**Namespace:** [`Eremex.AvaloniaUI.Controls.Bars`](./index.md)  
**Assembly:** `Eremex.Avalonia.Controls.dll`  
**NuGet Package:** [Eremex.Avalonia.Controls](https://www.nuget.org/packages/Eremex.Avalonia.Controls)

## Declaration

```csharp
public class PopupMenu : TemplatedControl, ICustomHitTest, INavigatable, IPopup, IToolbarItemsHolder
```

## Public Members

| name | description |
| --- | --- |
| [PopupMenu](PopupMenu/PopupMenu.md)() | Initializes a new instance of the PopupMenu class. |
| [CanOpenPopup](PopupMenu/CanOpenPopup.md) { get; } | Gets whether the popup can be opened. |
| [ContentRightIndent](PopupMenu/ContentRightIndent.md) { get; set; } | Gets or sets the space reserved to the right of menu item content. |
| [Header](PopupMenu/Header.md) { get; set; } | Gets or sets the item's header content. |
| [IsOpen](PopupMenu/IsOpen.md) { get; set; } | Gets or sets whether the popup is open. |
| [ItemCount](PopupMenu/ItemCount.md) { get; } | Gets the number of item containers. |
| [Items](PopupMenu/Items.md) { get; } | Gets the collection of toolbar items. |
| [ItemsSource](PopupMenu/ItemsSource.md) { get; set; } | Gets or sets the collection whose items are used to generate toolbar items. |
| [Manager](PopupMenu/Manager.md) { get; set; } | Gets or sets the toolbar manager associated with this object. |
| [MenuName](PopupMenu/MenuName.md) { get; set; } | Gets or sets the name of the popup menu. |
| [NavigatableList](PopupMenu/NavigatableList.md) { get; } | Gets the menu items available for keyboard navigation. |
| [PlacementAnchor](PopupMenu/PlacementAnchor.md) { get; set; } | Gets or sets the anchor point on the popup's placement rectangle. |
| [PlacementGravity](PopupMenu/PlacementGravity.md) { get; set; } | Gets or sets the direction in which the popup extends from its anchor point. |
| [PlacementMode](PopupMenu/PlacementMode.md) { get; set; } | Gets or sets the mode used to position the popup. |
| [PlacementRect](PopupMenu/PlacementRect.md) { get; set; } | Gets or sets the rectangle used to position the popup relative to its placement target. |
| [PlacementTarget](PopupMenu/PlacementTarget.md) { get; set; } | Gets or sets the control relative to which the popup is positioned. |
| [SerializationInfo](PopupMenu/SerializationInfo.md) { get; } | Gets the layout information used during serialization or deserialization. |
| [SerializationName](PopupMenu/SerializationName.md) { get; set; } | Gets or sets the name used to identify this object during layout serialization. |
| [ShadowOffset](PopupMenu/ShadowOffset.md) { get; set; } | Gets or sets the offset of the popup shadow. |
| [ShowHeader](PopupMenu/ShowHeader.md) { get; set; } | Gets or sets whether the popup menu displays its header. |
| [ShowIconStrip](PopupMenu/ShowIconStrip.md) { get; set; } | Gets or sets whether the popup menu displays a strip for item glyphs. |
| event [Closed](PopupMenu/Closed.md) | Occurs after the popup closes. |
| event [Closing](PopupMenu/Closing.md) | Occurs before the popup closes. Cancel the event to prevent closing. |
| event [Opened](PopupMenu/Opened.md) | Occurs after the popup opens. |
| event [Opening](PopupMenu/Opening.md) | Occurs before the popup opens. Cancel the event to prevent opening. |
| [ClosePopup](PopupMenu/ClosePopup.md)() | Closes the popup. |
| [HitTest](PopupMenu/HitTest.md)(…) | Returns whether the specified point lies within the menu. |
| [OpenPopup](PopupMenu/OpenPopup.md)() | Opens the popup using its current placement settings. |
| [OpenPopup](PopupMenu/OpenPopup.md)(…) | Opens the popup at the specified position relative to the placement target and returns whether it opened. (4 methods) |

## See Also

* interface [IPopup](./IPopup.md)
* interface [IToolbarItemsHolder](./IToolbarItemsHolder.md)
* namespace [Eremex.AvaloniaUI.Controls.Bars](./index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Avalonia.Controls.dll -->
