mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-08-11 02:29:41 +00:00
implement WindowManager, BrowserWindow-API and Menu-API
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using ElectronNET.API;
|
||||
using ElectronNET.API.Entities;
|
||||
using System.Linq;
|
||||
|
||||
namespace ElectronNET.WebApp.Controllers
|
||||
{
|
||||
@@ -22,7 +23,11 @@ namespace ElectronNET.WebApp.Controllers
|
||||
{
|
||||
string pathName = await Electron.App.GetPathAsync(PathName.pictures);
|
||||
Electron.IpcMain.Send("GetPathComplete", pathName);
|
||||
|
||||
Electron.WindowManager.BrowserWindows.First().Minimize();
|
||||
await Electron.WindowManager.CreateWindowAsync("http://www.google.de");
|
||||
});
|
||||
|
||||
|
||||
return View();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user