Pyllic
Pyllic

Reputation: 1

How to set a WindowSize fix?

I think you dont need that much information or my code. My Problem is, that I want to start my App. Like every other App you can change the size with your mouse when the app is running. I want the complete opposite. Is it possible to set the Windowsize fix so the user can not change the size by himself?

This is what I tried. Its starting with 1280/720, but of course you can change the size of the window still.

ApplicationView.PreferredLaunchViewSize = new Size(720, 1280); ApplicationView.PreferredLaunchWindowingMode = ApplicationViewWindowingMode.PreferredLaunchViewSize;

Upvotes: 0

Views: 57

Answers (1)

visc
visc

Reputation: 4959

You can't in UWP. But what you can do is scale your view using a scale transform if your goal is to preserve the layout arrangement without doing a ton of work to design a reactive layout.

Upvotes: 1

Related Questions