SteveSandersonMS / WebWindow

.NET Core library to open native OS windows containing web UI on Windows, Mac, and Linux. Experimental.
Apache License 2.0
1.99k stars 214 forks source link

fullscreen, size and position #78

Closed Jinjinov closed 2 years ago

Jinjinov commented 4 years ago

While it is possible to set window size and position from C# like this:

    public void Configure(DesktopApplicationBuilder app)
    {
        app.AddComponent<App>("app");

        WebWindow webWindow = app.Services.GetService<WebWindow>();

        webWindow.Top = 0;
        webWindow.Left = 0;
        webWindow.Width = 800;
        webWindow.Height = 600;
    }

The problem is that it takes from 1 to 2 seconds for this settings to take effect.

That is why I added:

bool fullscreen int x, int y int width, int height

to all C++ and C# functions