-
-
Notifications
You must be signed in to change notification settings - Fork 13
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
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
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request