I'm developing a xmpp chat client in C#.NET. I'm little co开发者_如何学Gonfused about what control should I use for Buddy list. Buddy list will consist of status icon, name & his buddy pic. Can u please recommend that what control will be best for me to use? (Do u think that ListView will be appropriate?)
Another question, I'm using agsxmpp. Does it support invisible status in Gtalk. Is there any library out there bettre than this ?
Thanks.
I think the ListView would be fine, it supports everything you would need. You could also go with an owner-draw ListBox if you want something with a little more flexibility (though obviously, that'd be more work).
As for your other question, I'm not sure. You might want to check the documentation for the library.
Using TreeView will be the best control, it will help you in grouping buddies. I used it before for the same purpose.
The RosterTree code in Jabber-Net would be a good starting point. It already does owner-draw, and could be pretty easily extended to do avatars by modifying the DrawItem method.
精彩评论