implement BrowserWindow-API functions

This commit is contained in:
Gregor Biswanger
2017-10-16 16:53:35 +02:00
parent 828963ae9f
commit c5229d1d00
12 changed files with 1358 additions and 21 deletions

View File

@@ -71,7 +71,13 @@ namespace ElectronNET.WebApp
Electron.Menu.SetApplicationMenu(menuItems);
Electron.Tray.Show("/Assets/electron_32x32.png", menuItems);
var browserWindow = await Electron.WindowManager.CreateWindowAsync();
var browserWindow = await Electron.WindowManager.CreateWindowAsync(new BrowserWindowOptions {
Show = false
});
browserWindow.ReadyToShow += () => {
browserWindow.Show();
};
}
}
}