优先开源或免费.
解决方法 这是一个基本示例,它使用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); tlp.Controls.Add(new TextBox(),1,0); tlp.Controls.Add(new Label { Text = "Last name",1); tlp.Controls.Add(new TextBox(),1); acc.Add(tlp,"Contact Info","Enter the clIEnt's information.",true); acc.Add(new TextBox { Dock = DockStyle.Fill,Multiline = true,Backcolor = color.White },"Memo","Additional ClIEnt Info",true,contentBackcolor:color.transparent); acc.Add(new Control(),"Other Info","Miscellaneous information.");总结
以上是内存溢出为你收集整理的c# – winforms手风琴全部内容,希望文章能够帮你解决c# – winforms手风琴所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)