且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

选项卡式MDI中的选项卡

更新时间: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 a TabControl 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 of ListBox/Panel, for example.

Imagine you have a tab page; inside a tab page a ListBox with items and some Panel of right. When you change selection in a list box, use System.Windows.Forms.CheckedListBox.SelectedIndexChanged event to look at the item and show appropriate instance of Panel on right side.

—SA