更新时间:2022-06-26 07:49:09
为什么不只是将选项卡控件放在其中一个选项卡中?选项卡控件中选项卡页的子项本身也可以是选项卡控件.
Why don''t you just drop a tab control in one of the tabs? The child of a tab page in a tab control can itself be a tab control.
如果您创建的TabControl
是选项卡,从客户体验的角度来看,这太令人困惑了.视图(即使从技术上讲很容易).您需要两个级别?好的.使它们在视觉上有所不同.例如,一种这样的设计可以基于ListBox
/Panel
形式的主细节.
假设您有一个标签页;在选项卡页面中,一个ListBox
包含项目和一些Panel
在右边.当您在列表框中更改选择时,使用System.Windows.Forms.CheckedListBox.SelectedIndexChanged
事件查看该项目并在右侧显示Panel
的适当实例.—SA
If you create aTabControl
is a tab, it would be too confusing from the customer experience point of view (even though it''s quite easy technically). You need two levels? Good. Make them visually different. One such design can be based on master-detail in the form ofListBox
/Panel
, for example.
Imagine you have a tab page; inside a tab page aListBox
with items and somePanel
of right. When you change selection in a list box, useSystem.Windows.Forms.CheckedListBox.SelectedIndexChanged
event to look at the item and show appropriate instance ofPanel
on right side.—SA