控件之间的标准边距和标准控件尺寸
例如,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)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以随时参阅Windows 用户体验指南。 它附带了一个方便的表格 推荐的控件尺寸。 有缺点但是,使用像素大小。
不过,我不知道如何控制 Visual Studio 中的捕捉行为。 显然这是不可能的。 您可以设置网格大小,但不会影响动态捕捉线。
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.
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.
要更改捕捉选项,请转到“工具”>“捕捉”。 选项> Windows 窗体设计器。 有一个“布局设置”类别,其中包括一个名为“GridSize”的设置。
就标准而言,我认为它们随着关注用户体验的技术(WPF/Silverlight)的出现而逐渐消失。 例如,看看 Expression Blend。 不太标准,对吧? 我认为在每个应用程序中提供出色的用户体验比在所有应用程序中使用通用的 GUI 样式重要得多。
To change the snapping options, go to Tools > Options > Windows Forms Designer. There is a 'Layout Settings' category that include a setting called 'GridSize'.
As far as standards are concerned, I see them fading away with the arrival of technologies that focus on the user experience (WPF/Silverlight). Look at Expression Blend for instance. Not very standard, right? I think delivering a great user experience in each app is much more important than having a common GUI style across all apps.