This is a migrated thread and some comments may be shown as answers.

Splitter Collapsible in urgency

1 Answer 146 Views
CollapsiblePanel
This is a migrated thread and some comments may be shown as answers.
ksk
Top achievements
Rank 1
ksk asked on 01 Apr 2009, 10:09 AM
Hi,
How can i  make collapsible splitter in windows application.I need the control should be collapsible.Please help me in this case.And send me the sample project for working collapsible splitter in windows applications.

Thanks in advance,
Santhose Kumar.

1 Answer, 1 is accepted

Sort by
0
Mike
Telerik team
answered on 03 Apr 2009, 10:22 AM
Hello,

Recently other customers requested functionality similar to the collapsible settings panel in our Demo application. I have prepared a sample that demonstrates it (attached). I am not entirely sure it would fit your scenario but you can consider extending it.

Here is how it works. First I added RadPanel with back ground image and a customized SplitContainer control. It is customized to use double buffering when painting its inner Panels. Otherwise main content panel will flicker a lot when repainting, and this is great issue if you a re using any animations. Then I added RadSplitter control. Nothing special here - this control simply resembles a splitter control with an arrow that show the direction of expanding/collapsing. The main expand/collapse functionality is carried out by the SplitContainer.

To animate the side panel I used AnimateWindow win32 API method. The only quirk is that it expects the target window to be hidden prior to animating.

For you information, a new RadSplitContainer control with more functionality will be available in Q2, along with the new docking system we are currently developing.


Let me know if this does the job.

Greetings,
Mike
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
CollapsiblePanel
Asked by
ksk
Top achievements
Rank 1
Answers by
Mike
Telerik team
Share this question
or