gpt4 book ai didi

C# Day from Week 选择器组件

转载 作者:太空宇宙 更新时间:2023-11-03 18:20:21 25 4
gpt4 key购买 nike

这个问题是针对 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com