Skip to content

[Catalyst] Adding and Removing ContextMenus currently does not work #9359

@PureWeen

Description

@PureWeen

Description

The code needs to be filled in for adding/removing Context Menus

  • Windows it kind of works. If you test the controls sample it sometimes adds one sub menu item but then others don't get added
  • Catalyst completely doesn't work

On catalyst I found that the issue is related to not disconnecting the handler before recreating the menu.

Workaround

You can pretty easily fix it by adding the following disconnect code

image

But after I did that the behavior of the ContextMenu on the WkWebView became more erratic

Depends on

VS bug #1816116

Metadata

Metadata

Assignees

Labels

area-controls-contextmenuContextMenublockedWork that is currently blockedp/2Work that is important, but is currently not scheduled for releasepartner/cat 😻this is an issue that impacts one of our partners or a customer our advisory team is engaged withplatform/macosmacOS / Mac Catalysts/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingt/desktopThe issue relates to desktop scenarios (MacOS/MacCatalyst/Windows/WinUI/WinAppSDK)

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions