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