mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
Using OnReadyToShow to display the main window in Blazor does not seem to work with Show set to false #438
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Dotneteer on GitHub (Jan 4, 2020).
Originally assigned to: @GregorBiswanger on GitHub.
ElectronNET version: 7.30.2
.NET Core 3.0.1 (produces the same issue with v3.1.0)
(project that reproduces the behavior is attached)
BlazorOnReadyToShowIssue.zip
Create an ElectronNET based Blazor project with the standard steps
mkdir BlazorOnReadyIssuecd BlazorOnReadyIssuedotnet new blazorserver --no-httpsdotnet add package ElectronNET.APIdotnet new tool-manifestdotnet tool install ElectronNET.CLIdotnet electronize initProgram.cs:Startup.cs:electronize start)Expected behavior: The Electron Shell window is displayed with the Blazor App.
Issue: The Electron Shell window does not display.
Whenever I change the
Showproperty ofBrowserWindopOptionstotrue, the project works fine, but, of course, for a few seconds an empty page is displayed according to the normal behavior.