mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
Submenu not shown #490
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @graylobo on GitHub (May 14, 2020).
Originally assigned to: @GregorBiswanger on GitHub.
I'm trying to make 'One' menu, and 'Two' submenu.
my code is below
Task.Run(async () => { var options = new BrowserWindowOptions { Show = true }; Electron.Menu.SetApplicationMenu(new MenuItem[] { new MenuItem { Label = "One" ,Submenu = new MenuItem[] { new MenuItem {Label="Two" } } } }); await Electron.WindowManager.CreateWindowAsync(); });It makes 'One' menu, but nothing happen when i click it.

And this github demo also does not display submenu.
https://github.com/ElectronNET/electron.net-api-demos
Can i know what am I missing?