I'm using electron.Net, but when I start the main window, It always opens small size aligned to the center.
This is my code:
public void Configure(IApplicationBuilder app, IWebHostEnvironment env) {
if (env.IsDevelopment()) {
app.UseDeveloperExceptionPage();
} else {
app.UseExceptionHandler("/Home/Error");
}
app.UseStaticFiles();
app.UseRouting();
app.UseAuthorization();
app.UseEndpoints(endpoints => {
endpoints.MapControllerRoute(
name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}");
});
Task.Run(async () => await Electron.WindowManager.CreateWindowAsync());
Electron.Menu.SetApplicationMenu(new MenuItem[] {});
}