有人知道c#的winforms accordion控件吗?
最好是开源或免费的。
发布于 2014-11-01 02:26:48
下面是一个使用CheckBox控件的基本示例,其中的头文件的Appearance设置为Button。Download accordion.cs on sourceforge.
演示代码:
Accordion acc = new Accordion();
acc.CheckBoxMargin = new Padding(2);
acc.ContentMargin = new Padding(15, 5, 15, 5);
acc.ContentPadding = new Padding(1);
acc.Insets = new Padding(5);
acc.ControlBackColor = Color.White;
acc.ContentBackColor = Color.CadetBlue;
TableLayoutPanel tlp = new TableLayoutPanel { Dock = DockStyle.Fill, Padding = new Padding(5) };
tlp.TabStop = true;
tlp.Controls.Add(new Label { Text = "First Name", TextAlign = ContentAlignment.BottomLeft }, 0, 0);
tlp.Controls.Add(new TextBox(), 1, 0);
tlp.Controls.Add(new Label { Text = "Last Name", TextAlign = ContentAlignment.BottomLeft }, 0, 1);
tlp.Controls.Add(new TextBox(), 1, 1);
acc.Add(tlp,"Contact Info", "Enter the client's information.", 0, true);
acc.Add(new TextBox { Dock = DockStyle.Fill, Multiline = true, BackColor = Color.White }, "Memo", "Additional Client Info", 1, true, contentBackColor:Color.Transparent);
acc.Add(new Control(), "Other Info", "Miscellaneous information.");

发布于 2009-08-19 23:44:28
XPTaskBar可能会满足您的需求。我使用商业的(但价格合理的) Krypton Suite
发布于 2012-04-27 23:54:11
Synfusion有GroupBar,它的外观基本上就像左边的栏,它的http://www.syncfusion.com/products/user-interface-edition/windows-forms/tools/features#navigation-package相当圆滑
https://stackoverflow.com/questions/1303195
复制相似问题