什么控件最适合好友列表?
我正在 C#.NET 中开发 xmpp 聊天客户端。我对好友列表应该使用什么控件有点困惑。好友列表将由状态图标、姓名和好友组成。他的朋友的照片。你能推荐什么控件最适合我使用吗? (你认为ListView合适吗?)
另一个问题,我正在使用agsxmpp。是否支持Gtalk中的隐身状态。还有比这更好的图书馆吗?
谢谢。
I'm developing a xmpp chat client in C#.NET. I'm little confused 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我认为 ListView 会很好,它支持您需要的一切。如果您想要更灵活的东西,您也可以使用所有者绘制的列表框(尽管显然,这会需要更多工作)。
至于你的另一个问题,我不确定。您可能想检查该库的文档。
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.
使用TreeView将是最好的控件,它将帮助您对好友进行分组。我之前出于同样的目的使用过它。
Using TreeView will be the best control, it will help you in grouping buddies. I used it before for the same purpose.
Jabber 中的 RosterTree 代码 - Net 将是一个很好的起点。它已经可以进行所有者绘制,并且可以通过修改 DrawItem 方法很容易地扩展以进行头像。
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.