控件和标准控件大小之间的标准边距 [英] Standard margins between controls and standard control sizes

查看:29
本文介绍了控件和标准控件大小之间的标准边距的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,Windows 窗体设计器提供将我的控件放置在窗体上的方式,窗体边框和控件边框之间有 12 个像素.对我来说似乎太多了.是标准值吗?另外,据我所知,标准按钮高度应该是 23 像素.我对吗?是否有任何文件说明这一切?我可以在 Visual Studio 中设置这个默认值吗(例如,如果想要控件​​和表单边框之间的默认边距,当出现对齐时,为 6 像素而不是 12 像素怎么办)?

For example, Windows Forms Designer offers to place my controls on the form the way there are 12 pixels between form border and control border. It seems too much to me. Is it standard value? Also, as I understand standard button height should be 23 pixels. Am I right? Is there any documents that state all this? And can I setup this default values in Visual Studio (for example what if want default margin between control and form borders, when the snap appears, to be 6 pixels instead of 12)?

推荐答案

您可以随时参考 Windows 用户体验指南.它带有一个方便的表格 推荐的控件大小.有缺点但是,使用像素大小.

You can always refer to the Windows User Experience Guidelines. It comes with a handy table of recommended control sizes. There are drawbacks in using pixel sizes, however.

不过,我不知道有什么方法可以控制 Visual Studio 中的捕捉行为.显然是做不到的.您可以设置网格大小,但不会影响动态捕捉线.

I don't know of a way to control the snapping behaviour in Visual Studio, though. Apparently it can't be done. You can set a grid size, but it won't affect the dynamic snapping lines.

这篇关于控件和标准控件大小之间的标准边距的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆