Electron.NET
Electron.NET copied to clipboard
How to hide standard Electron Menu ?
How to hide the standard Menu : File, Edit, View .... ? I do in Startup:
var window = await Electron.WindowManager.CreateWindowAsync();
window.RemoveMenu(); // <-------------
window.OnClosed += () => {
Electron.App.Quit();
};
```It works but: the app starts, the menu appears(!) for 2-3 secs and then disappeared. Is it possible to hide it at all?
Resume
You can try passing as a parameter to the window manager the configuration to hide it automatically. I attach an example.
Code
var browserWindowOptions = new BrowserWindowOptions
{
AutoHideMenuBar = true
};
var browserWindow = await Electron.WindowManager.CreateWindowAsync(browserWindowOptions);