2009-08-19 6 views
11

누구나 C# winforms 아코디언 컨트롤을 알고 있습니까?winforms accordion

오픈 소스 또는 무료입니다.

+0

에 체크 아웃. 그것은 최고입니다 http://www.codeproject.com/Articles/416521/Easy-WinForms-Accordion-Control 이것은 늦은 답변이지만 다른 사람에게 도움이됩니다 – Moons

답변

0

XPTaskBar이 귀하의 요구를 충족시킬 수도 있습니다. 나는 상업 (그러나 합리적인 가격) Krypton Suite

9

Button-Appearance 세트 CheckBox 컨트롤을 사용하는 기본적인 예입니다 꽤 빠르 헤더 용. 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."); 

enter image description here