How to maximize uwp window on startup programmatically? I want maximize my window after startup, because it started minimized and suspended. Its possible?
How to maximize uwp window on startup programmatically? I want maximize my window after startup, because it started minimized and suspended. Its possible?
If you want to set it Full Screen at startup, just after "this.InitializeComponent();", you can call :
Windows.UI.ViewManagement.ApplicationView.GetForCurrentView().TryEnterFullScreenMode();
I use Startup Task (https://docs.microsoft.com/en-us/uwp/api/windows.applicationmodel.startuptask?view=winrt-20348) in my app, and I want maximize window after how it loaded.
@bexolder-5536 You could also put this line of code in the App.cs before the Window.Current.Activate();
It doesn`t work for launching on startup, I mean startup when user log in. And I want maximize window, not full screen.
6 people are following this question.