C# Day from Week 选择器组件

标签 c# winforms

这个问题是针对 C# 2.0 Winform 的。

目前我使用复选框来选择这样的:Monday[x], Thuesday[x]¸...等。

它工作正常,但这是获取星期几的更好方法吗?(可以选择不止一天)

最佳答案

复选框是允许选择多个项目时使用的标准 UI 组件。来自 UI 可用性大师 Jakob Nielsen's文章关于 Checkboxes vs. Radio Buttons :

"Checkboxes are used when there are lists of options and the user may select any number of choices, including zero, one, or several. In other words, each checkbox is independent of all other checkboxes in the list, so checking one box doesn't uncheck the others."

在设计 UI 时,为给定任务使用标准或常规组件非常重要。 Using non-standard components generally causes confusion .例如,可以使用允许选择多个项目的组合框。但是,这需要用户使用 Ctrl 键并单击所需的项目,这对大多数人来说不是很直观的操作。

关于C# Day from Week 选择器组件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/128924/

相关文章:

.net - BackgroundWorker线程问题

c# - 如何在 Windows 窗体中居中对齐标题栏文本?

c# - 从窗口句柄转换为表单

c# - 如何重新使用现有/已经打开的 Windows 资源管理器窗口来启动资源管理器

c# - 将数据从控制台应用程序发送到 asp.net 网站

c# - 当使用可执行文件的完整路径,以管理员身份运行时,Windows 10 无法访问指定的设备、路径或文件

c# - Entity Framework : How to express a LIKE statement that contains [0-9]

c# - WPF DataGridRow ContextMenu MenuItem 单击事件未触发

c# - Backgroundworker 的正确使用方法

c# - OnFormClosing 和 e.CloseReason