# PopupContainer class

Displays a control in a popup with optional resize and close buttons.

**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 PopupContainer : TemplatedControl, INavigatable, IPopup, IResizeablePopupOwner
```

## Public Members

| name | description |
| --- | --- |
| [PopupContainer](PopupContainer/PopupContainer.md)() | Initializes a new instance of the PopupContainer class. |
| [Child](PopupContainer/Child.md) { get; set; } | Gets or sets the control displayed in the popup. |
| [IsOpen](PopupContainer/IsOpen.md) { get; set; } | Gets or sets whether the popup is open. |
| [Manager](PopupContainer/Manager.md) { get; set; } | Gets or sets the toolbar manager associated with this object. |
| [PlacementAnchor](PopupContainer/PlacementAnchor.md) { get; set; } | Gets or sets the anchor point on the popup's placement rectangle. |
| [PlacementGravity](PopupContainer/PlacementGravity.md) { get; set; } | Gets or sets the direction in which the popup extends from its anchor point. |
| [PlacementMode](PopupContainer/PlacementMode.md) { get; set; } | Gets or sets the mode used to position the popup. |
| [PlacementRect](PopupContainer/PlacementRect.md) { get; set; } | Gets or sets the rectangle used to position the popup relative to its placement target. |
| [PlacementTarget](PopupContainer/PlacementTarget.md) { get; set; } | Gets or sets the control relative to which the popup is positioned. |
| [ShadowMargin](PopupContainer/ShadowMargin.md) { get; set; } | Gets or sets the margin reserved for the popup shadow. |
| [ShadowOffset](PopupContainer/ShadowOffset.md) { get; set; } | Gets or sets the offset of the popup shadow. |
| [ShowCloseButton](PopupContainer/ShowCloseButton.md) { get; set; } | Gets or sets whether the popup displays a close button. |
| [ShowSizeGrip](PopupContainer/ShowSizeGrip.md) { get; set; } | Gets or sets whether the popup displays a resize grip. |
| event [Closed](PopupContainer/Closed.md) | Occurs after the popup closes. |
| event [Closing](PopupContainer/Closing.md) | Occurs before the popup closes. Cancel the event to prevent closing. |
| event [Opened](PopupContainer/Opened.md) | Occurs after the popup opens. |
| event [Opening](PopupContainer/Opening.md) | Occurs before the popup opens. Cancel the event to prevent opening. |
| [ClosePopup](PopupContainer/ClosePopup.md)() | Closes the popup. |
| [OpenPopup](PopupContainer/OpenPopup.md)() | Opens the popup using its current placement settings. |
| [OpenPopup](PopupContainer/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)
* namespace [Eremex.AvaloniaUI.Controls.Bars](./index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Avalonia.Controls.dll -->
