什么控件最适合好友列表?

发布于 2024-08-25 10:20:10 字数 181 浏览 5 评论 0原文

我正在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

回梦 2024-09-01 10:20:10

我认为 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.

似最初 2024-09-01 10:20:10

使用TreeView将是最好的控件,它将帮助您对好友进行分组。我之前出于同样的目的使用过它。

Using TreeView will be the best control, it will help you in grouping buddies. I used it before for the same purpose.

爱,才寂寞 2024-09-01 10:20:10

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文