Tree-view Alternatives
im currently working on a project that involves listing contacts with a photo and email address, kind of like messengers contact lists.
The problem is ListView just dont cut it!
I need something that's like the MSN Live Messenger contact lists, Witch consist of a large padded area with photo(32px), And text to the right of the photo but also have the expandable headers.
Anybody give me some advice on any references开发者_如何学C i can use or if its possible to do with Tree-view can someone show me an example.
Kind Regards.
I would recommend making a WPF user control and hosting it in in an ElementHost control in your Windows Forms project. I've used WPF inside WinForms in the past and it works great.
Assuming you add an element host control onto your WinForms called elementHost1
:
elementHost1.Child = new MyWPFControl();
Are you using WPF? You could use a ListView
after all with an Expander
for the ItemTemplate
. Blacklight also has a great AnimatedExpander
: see Blacklight releases.
Hope that helps!
精彩评论