Any ideas re why the WPF application I've starting building has a larger width and height than what I set in VS2010?
任何想法都是为什么我开始构建的WPF应用程序具有比我在VS2010中设置的更大的宽度和高度?
That is, in VS2010 I set the height of the window to be AUTO (so it should be just high enough to contain the controls) and this seems to work visually within VS2010. But when I then run the application the window height of the app is much larger than this?
也就是说,在VS2010中,我将窗口的高度设置为AUTO(因此它应该足够高以容纳控件),这似乎在VS2010中可视化。但是当我运行应用程序时,应用程序的窗口高度比这大得多?
1 个解决方案
#1
5
Have you tried setting the SizeToContent property of the Window to WidthAndHeight ?
您是否尝试将Window的SizeToContent属性设置为WidthAndHeight?
#1
5
Have you tried setting the SizeToContent property of the Window to WidthAndHeight ?
您是否尝试将Window的SizeToContent属性设置为WidthAndHeight?