csharp
public sealed class ContextMenuA menu opened at a point rather than beside an element.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
⚠ Not a Menu with a different opening method — a distinct type, because the placement rule differs. A menu beside an anchor flips to the other side of it when there is no room; a context menu has no side to be on, so it is pinned to the cursor and pushed back inside the viewport. Sharing one type would mean a menu that sometimes appears above the cursor by a rule that makes no sense for a cursor.
Fields and properties (1)
protected override string TagNameThe element name this type answers to when a caller does not choose one.
Methods (2)
public void OpenAt(float x, float y)Opens it with its corner at a point in document space.
public void Attach(UiElement target)Makes a secondary click anywhere in a subtree open it there.
Used by (11)
- OverlayInteractionTestsVixen.Ui.Controls.Tests
- CreateMenuTestsVixen.Editor.App.Tests
- EditorApplicationVixen.Editor.App
- GridViewTestsVixen.Editor.App.Tests
- InspectorViewVixen.Editor.Inspector
- MenuPresenterVixen.Editor.Ui
- MenuTestsVixen.Editor.Ui.Tests
- PanelTestsVixen.Editor.Inspector.Tests
- SceneMenuTestsVixen.Editor.App.Tests
- ToolbarPresenterVixen.Editor.Ui
- ToolbarSectionTestsVixen.Editor.Ui.Tests