Can I maximize UWP window programmatically?

bexolder 41 Reputation points
2021-08-02T13:09:45.74+00:00

How to maximize uwp window on startup programmatically? I want maximize my window after startup, because it started minimized and suspended. Its possible?

Universal Windows Platform (UWP)
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 90,441 Reputation points
    2021-08-02T15:51:09.017+00:00

    If you want to set it Full Screen at startup, just after "this.InitializeComponent();", you can call :

    Windows.UI.ViewManagement.ApplicationView.GetForCurrentView().TryEnterFullScreenMode();
    

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.