Partially Fixes #2975 - Replaces old ContextMenu with new Bar/Shortcut based implementation (#4008)

* touching publish.yml

* Nuked ContextMenuv2 - use PopverMenu instead

* WIP context menu stuff

* More robust dispose

* Removed ConextMenu; use PopoverMenu instead

* Code cleanup

* Code cleanup2
This commit is contained in:
Tig
2025-03-31 17:12:55 -06:00
committed by GitHub
parent 39d4c7dd3d
commit 4cc44091f2
40 changed files with 714 additions and 3732 deletions

View File

@@ -470,6 +470,24 @@ In v1, only Views derived from `Toplevel` could be overlapped. In v2, any view c
v1 conflated the concepts of
## `ContextMenu` replaced by `PopoverMenu`
`PopoverMenu` replaces `ContrextMenu`.
## `MenuItem` is now based on `Shortcut`
```diff
new (
Strings.charMapCopyGlyph,
"",
CopyGlyph,
- null,
- null,
(KeyCode)Key.G.WithCtrl
),
```
## Others...
* `View` and all subclasses support `IDisposable` and must be disposed (by calling `view.Dispose ()`) by whatever code owns the instance when the instance is longer needed.