EntityMenuItem structure
A registered context-menu item, scoped to the entity it was resolved for.
public struct EntityMenuItem : IEquatable<EntityMenuItem>Public Members
Section titled “Public Members”| name | description |
|---|---|
| EntityMenuItem(…) | A registered context-menu item, scoped to the entity it was resolved for. |
| IconPng { get; set; } | Optional icon for the item (framework 2.33.0): PNG bytes of a flat WHITE glyph on transparency — the renderer tints it (muted, or red for a destructive item) and draws it in a 16 px slot at the label’s left. Supply a 32 px drawing (it reads crisply at every UI scale the menu draws at); null = the renderer’s generic dot. The same array is handed back on every ItemsFor call, so a renderer may cache by reference. An init property, NOT a record-constructor parameter, so plugins compiled against an older Abstractions keep binding new EntityMenuItem(label, onClick). |
| Label { get; set; } | |
| OnClick { get; set; } |
See Also
Section titled “See Also”- namespace Stellar.Abstractions.Services