代码之家  ›  专栏  ›  技术社区  ›  diego

Winforms手风琴[关闭]

  •  11
  • diego  · 技术社区  · 15 年前

    有人知道C Winforms手风琴控制吗?

    更喜欢开源或免费。

    3 回复  |  直到 10 年前
        1
  •  12
  •   Loathing    10 年前

    下面是一个使用 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.");
    

    enter image description here

        2
  •  0
  •   Eric J.    15 年前

    XPTaskBar 也许能满足你的需要。我使用商业广告(但价格合理) Krypton Suite

        3
  •  -1
  •   Pavi    13 年前
    推荐文章