Click here to Skip to main content
16,015,077 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi All

Could please suggest me on following ?

I am using WPF with VS 4.0 and I have Accrodian Panel there are 5 Item inside it and when I click on Item 1 then other should be closed automatically when I click Item 2 then Item 1 and other item should be closed. means at a time one item should open.

Thanks you in Advance.
Posted
Comments
Sergey Alexandrovich Kryukov 18-Dec-12 20:01pm    
This is not really a question. What's your problem, exactly? What did you try?
—SA


Accordion in WPF Toolkit
[^]
this tutorial can help you.
Happy Coding :)
 
Share this answer
 
Hello
How are the items added to the panel?
Collection to ItemsSource, or manually added in code or XAML?

Anyway, there should be possible to loop the items and collaps the other items.
Or if there is some property that handle that in the actual control.
I have never used that panel so I can't give a good answer. But I bet the logic should not be too far away from selected items in a standard ListView or TabPanel.
 
Share this answer
 
Comments
Abhishek Pant 23-Dec-12 8:06am    
"I have never used that panel so I can't give a good answer"-funny isn't it :D
theHollow 25-Dec-12 17:49pm    
Sorry about that. But I often see that many standard controls share similar behavors and property names etc...often. So that was my point :-) Gave it a shot :-) Hope by the way you found a good solution.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900