Custom Control Featuring a Collapsible Panel

本文参考http://www.codeproject.com/Articles/53318/C-Custom-Control-Featuring-a-Collapsible-Panel





version
By Mokdes Hamid, 19 Jan 2010
自定义可折叠的Panel控件
自定义可折叠的Panel控件
28 votes)
自定义可折叠的Panel控件
1
自定义可折叠的Panel控件
2
自定义可折叠的Panel控件
3
自定义可折叠的Panel控件
4
自定义可折叠的Panel控件
5
4.71/5 - 28 votes
2 removed
μ 4.46, σa 1.10 [?]
自定义可折叠的Panel控件Is your email address OK? You are signed up for our newsletters but your email address is either unconfirmed, or has not been reconfirmed in a long time. Please click update your subscriptions.

Introduction

Having worked with ASP.NET AJAX CollapsiblePanel control extender and finding it practical to fit more content into a relatively small part of a web page or screen real estate, I thought it would be good to have such control for WinForm applications since VS 2005 and VS 2008 toolboxes do not offer such a control.

Background

CollapsiblePanel AJAX web control extender is a cool web control. But unfortunately, there is no such control in VS 2005 or VS 2008 standard toolbox, so I have decided to create one and share it with the community.

Using the Control at Design Time

Using the control at design time is very simple. Basically it behaves the same way as a normal Panel except that it can be expanded and collapsed.

After adding the Control to the toolbox, drag it on the design surface of your form and you'll get:

自定义可折叠的Panel控件

The control shows a smart tag when clicked it opens a window showing panel's new features and properties that we can use to customize the panel.

自定义可折叠的Panel控件

相关文章: