Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I'd like to implement a panel expande/collapse as the one implemented in the MSDN's TOC, but in WPF. That is, it has multi level capability to expand and collapse.
Though I'd like that the component(s) will have the extra capability to collapse one back on each level:

Layer 0: expand right ; no collapse
Layer 1: expand right ; collapse left
...
Layer n: no expand ; collapse left

example: http://msdn.microsoft.com/query/dev10.query?appId=Dev10IDEF1&l=EN-US&k=k(SYSTEM.WINDOWS.CONTROLS.TREEVIEW);k(VS.XAMLEDITOR);k(TargetFrameworkMoniker-%22.NETFRAMEWORK,VERSION%3dV4.0%22)&rd=true


Please look at the separator between the treeview and the content, there is a button pointing to the right, enables to expand the TOC. This is the capability I am looking for, to implement in WPF

Can any one point me to relevant info?

Regards,

Igal
Posted
Updated 4-Sep-10 10:27am
v2

1 solution

It sounds like a TreeView would fit the bill.

There are thousands of articles out there. Try searching on 'wpf treeview' and have a read of a few. Then you might like to try 'wpf treeviewitem'

*After your comment
I am obviously looking at a different TOC than the one you refer to. It looks exactly like a TreeView to me.

Maybe you should edit your original post to include a link to a page with the type of TOC you want.
 
Share this answer
 
v2
Comments
Igal_Kroyter 4-Sep-10 16:04pm    
Henry, thanks for the quick reply.

It is a very interesting idea. Though as you can see the TOC of the MSDN is using the same object, and enables the user to expose more of it every time a dedicated button is being pressed, While - as far as I understand - the treeviewitem handles different objects.
Could you be more specific? maybe I got it wrong?

Sorry, for not being clear enough, here is the path http://msdn.microsoft.com/query/dev10.query?appId=Dev10IDEF1&l=EN-US&k=k(SYSTEM.WINDOWS.CONTROLS.TREEVIEW);k(VS.XAMLEDITOR);k(TargetFrameworkMoniker-%22.NETFRAMEWORK,VERSION%3dV4.0%22)&rd=true

Please look at the separator between the treeview and the content, there is a button pointing to the right, enables to expand the TOC. This is the capability I am looking for, to implement in WPF. Regards.



Regards, Igal

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