views:

2236

answers:

1

Hi,

I am creating a Windows application (WPF) and C#. In my view, I have to add few layouts like browsing a folder, displaying the files in the folder in a list view...etc

My requirement is : The panels mentioned above should be collapsible panels, I guess, we dont have option of collapsible panel in wpf.

I have to create a custom control for this? If so, Please suggest me how to do this?

Thank You, Ramm

+8  A: 

The Expander control may be what you are looking for. From MSDN:

Expander Class

Represents the control that displays a header that has a collapsible window that displays content.

Bojan Resnik
Thanks for the link.But this doesn't look like a collapsible panel in ASP.NET.Actually I am not using ASP.NET controls in my proj. But if I want that kind of control in WPF, how can this be acheived?Pls help meThanksRamm
Aditya
I am not sure what you mean - Expander *is* a WPF control and does seem to behave like a collapsible panel. Can you please explain what functionality you are missing?
Bojan Resnik
I second Bojan's opinion. The expander is nearly identical in functionality. If you want it to look exactly like what is in ASP.NET, you will need to style it.Also, your answer acceptance rate is abysmal (only 4% currently). If you want people to answer your questions, you really should accept them when they solve your problem or lead you in the right direction as Bojan has done.
Jerry Bullard