- 
                Notifications
    
You must be signed in to change notification settings  - Fork 1.9k
 
Closed
Labels
area-controls-contextmenuContextMenuContextMenublockedWork that is currently blockedWork that is currently blockedp/2Work that is important, but is currently not scheduled for releaseWork 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 withthis is an issue that impacts one of our partners or a customer our advisory team is engaged withplatform/macosmacOS / Mac CatalystmacOS / Mac Catalysts/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't workingt/desktopThe issue relates to desktop scenarios (MacOS/MacCatalyst/Windows/WinUI/WinAppSDK)The issue relates to desktop scenarios (MacOS/MacCatalyst/Windows/WinUI/WinAppSDK)
Milestone
Description
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
But after I did that the behavior of the ContextMenu on the WkWebView became more erratic
Depends on
- Can't add MenuFlyoutItem to MenuFlyoutSubItem at runtime microsoft/microsoft-ui-xaml#7797
 - Workaround WinUI bug with adding/removing flyouts #14985
 
VS bug #1816116
Metadata
Metadata
Assignees
Labels
area-controls-contextmenuContextMenuContextMenublockedWork that is currently blockedWork that is currently blockedp/2Work that is important, but is currently not scheduled for releaseWork 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 withthis is an issue that impacts one of our partners or a customer our advisory team is engaged withplatform/macosmacOS / Mac CatalystmacOS / Mac Catalysts/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't workingt/desktopThe issue relates to desktop scenarios (MacOS/MacCatalyst/Windows/WinUI/WinAppSDK)The issue relates to desktop scenarios (MacOS/MacCatalyst/Windows/WinUI/WinAppSDK)
