title: Electron.Net: How can i start a window in maximized mode?
body: <p>I'm using electron.Net, but when I start the main window, It always opens small size aligned to the center.</p>
  <p>This is my code:</p>
  <pre class="lang-js prettyprint-override"><code>public void Configure(IApplicationBuilder app, IWebHostEnvironment env) {
      if (env.IsDevelopment()) {
          app.UseDeveloperExceptionPage();
      } else {
          app.UseExceptionHandler(&quot;/Home/Error&quot;);
      }
      app.UseStaticFiles();
  
      app.UseRouting();
  
      app.UseAuthorization();
  
      app.UseEndpoints(endpoints =&gt; {
          endpoints.MapControllerRoute(
              name: &quot;default&quot;,
              pattern: &quot;{controller=Home}/{action=Index}/{id?}&quot;);
      });
  
      Task.Run(async () =&gt; await Electron.WindowManager.CreateWindowAsync());
  
      Electron.Menu.SetApplicationMenu(new MenuItem[] {});
  }
  </code></pre>