Skip to content

Ability to launch app maximized #63

@blueheron786

Description

@blueheron786

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

I am trying to get my app to launch maximized. It doesn't. I can't seem to get it to. Things I've tried:

  • Getting access to the BlazorDesktopWindow
  • Calling ToggleFullscreen on it (UI thread vs. non-UI thread issues)
  • Accessing the underlying WPF window thing
  • Setting WindowState manually
  • Using event handlers like Activate to set it

All my attempts ended up pretty much the same:

  • Can't get access to the UI thread reliably, even with 100ms-10s delays to make sure initialization is done
  • Setting the property/code does nothing

Describe the solution you'd like

This could be as simple as: app.Services.GetRequiredService().Bar()

Failing that, a working tutorial would really go a long way here.

Additional context

https://github.com/blueheron786/code-health

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions