开发者

wpf app - why is the window size larger than I set it to?

开发者 https://www.devze.com 2023-01-15 04:18 出处:网络
Any ideas re why the WPF application I\'ve starting building has a larger width and height than what I set in VS2010?

Any ideas re why the WPF application I've starting building has a larger width and height than what I set in 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开发者_如何学Go than this?


Have you tried setting the SizeToContent property of the Window to WidthAndHeight ?

0

精彩评论

暂无评论...
验证码 换一张
取 消