为什么 Visual Studio 在 属性 页面中提供无效选择?

Why does Visual Studio make available an invalid selection in the property page?

我想让一个 CheckedListBox 只允许一个选择,并且正在调查它的 属性 page/pane/panel 看看是否有可能 属性 。我看到 "SelectionMode",它的下拉列表中包含以下选项:

One
MultiSimple
MultiExtended

我选择 "MultiSimple" 以查看 属性 窗格底部的概要文本会告诉我什么。不过,我没有受到启发,而是得到了这个指手画脚:

为什么 Visual Studio 在我身上拉 Lucy Van Pelt,在我试图 "kick it" 时拉开 "football"?如果 属性 不适用于控件,请不要用它填充下拉列表!

更新

顺便说一句,Zaki 的回答 here 给了我将选择限制为 1 所需的内容;不过,我仍然认为某些 Redmondian 应该对此做出解释。

控件 CheckedListBox 不支持 "multiple-selection",这在标题 备注 下的 MSDN documentation 中指出:

The SelectionMode property determines whether one item in the list box can be selected or no items can be selected. For CheckedListBox objects, multiple selection is not supported. You can set the mode to one item or no items.

显然这个事实并没有在 属性 sheet 的 design-time UI 中实现,然后允许您选择不合适的值,导致错误消息.

恕我直言 -- 我认为您的 Lucy Van Pelt 比较在这种情况下非常合适。