0

I am looking for a way to disable Window sizing for a universal Windows app, something like a fixed size dialog box from the pre WPF days.

Raamakrishnan A.
  • 515
  • 3
  • 14
oregonduckman
  • 389
  • 2
  • 13
  • Possible duplicate [Is it possible to restrict the user from re-sizing a UWP app?](http://stackoverflow.com/questions/32212301/is-it-possible-to-restrict-the-user-from-re-sizing-a-uwp-app) – Raamakrishnan A. May 15 '16 at 12:07
  • What you want to do is not re-sizing the window but disable the user operation on re-sizing the window by mouse, right? – Sunteen Wu May 16 '16 at 06:19

1 Answers1

0

That's it's possible because of UWP is for varied size devices. But you can set preffered size in MainPage constructor with code like:

ApplicationView.PreferredLaunchViewSize = new Size { Height = 550, Width = 360 };
ApplicationView.PreferredLaunchWindowingMode = ApplicationViewWindowingMode.PreferredLaunchViewSize;
Alexej Sommer
  • 2,677
  • 1
  • 14
  • 25