控件之间的标准边距和标准控件尺寸

发布于 2024-07-26 00:58:04 字数 199 浏览 1 评论 0原文

例如,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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

香橙ぽ 2024-08-02 00:58:04

您可以随时参阅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.

七色彩虹 2024-08-02 00:58:04

要更改捕捉选项,请转到“工具”>“捕捉”。 选项> 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文