设置最小宽度& UWP应用程序问题的高度 [英] Set minimum width & height of UWP app problem
问题描述
我正在开发一个UWP应用程序& xD给了我UI,其中最小宽度设置为1000 x 700像素。
现在,我已经阅读了很多博客,wiki等等。在App.xaml.cs.窗口激活代码之前添加了这一行
Application.GetCurrentView()。SetPreferredMinSize(new Size(300,300));
Window.Current.Activate();
当我启动我的应用程序时,它会打开全屏&我也可以将它调整到300 x 300以下。为什么会这样?
其次,我在某处读到我们可以将最小宽度/高度设置为最高500x500。这是对的吗?我能以某种方式将其设置为1000 x 700像素吗?
请提供您的意见。
谢谢,
Gourav
看起来像重复的  HTTPS:?//social.msdn.microsoft.com/Forums/vstudio/en-US/e2dbd9c5-0ce2-4323-9462-347cba6e1d0b/uwp-min-and-max-size-of-window论坛= wpdevelop
Hi,
I am developing one UWP app & xD has given me UI in which minimum width is set as 1000 x 700 px.
Now, I have read many blogs, wikis etc. & added this line before window activation code in App.xaml.cs.
Application.GetCurrentView().SetPreferredMinSize(new Size(300,300)); Window.Current.Activate();
And when I launch my app, it is opening full screen & I can resize it to below 300 x 300 too. Why is it happening?
Secondly, I read somewhere that we can set minimum width/height upto 500x500 only. Is it correct? Can I set it to 1000 x 700 px somehow?
Please give your inputs.
Thanks,
Gourav
looks like a duplicate of https://social.msdn.microsoft.com/Forums/vstudio/en-US/e2dbd9c5-0ce2-4323-9462-347cba6e1d0b/uwp-min-and-max-size-of-window?forum=wpdevelop
这篇关于设置最小宽度& UWP应用程序问题的高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!