Reputation: 4540
I would like to create a 'New Document' dialog similar to the Office 2007 style (see pic). I am having trouble with the list shown on the left. I have tried using a ListView control but I can't figure out how to display the header sections that scroll with the list (e.g. 'Template Categories' and 'Microsoft Office Online'
What is my best option for re-creating this style of list??
I am using .net3.5, VS2008 and winforms (NOT WPF). Am also open to purchasing 3rd party controls if necessary.
(source: com.com)
Michael
Upvotes: 1
Views: 903
Reputation: 4540
I Ended up using a 3rd party control (Elegant.ui.NavigationBar from prof-uis.com) for the final form. Screenie below.
The Headers and items are actually buttons (Elegant.Ui.ToggleButton) with the header buttons disabled so they don't react to the mouse. This looks ok I think. Note on this form I have also used a ListView with group headers (in the rightmost pane)
Upvotes: 0
Reputation: 204229
Without having seen the pic (did you forget to include it?), I'm guessing you're talking about groups within a ListView. This is pretty easy to accomplish.
Take a look at the MSDN documentation on the ListView.Groups property. Once you've defined your groups ("Template Categories" and "Microsoft Office Online" in your example) you can specify a Group on each ListViewItem to make it stay within that group.
Upvotes: 1