Subject: Showing Image on contact List Issue
I want to show image on contact list em using the following method in roster list but it is quit annoying that it is taking time and callback method taking time, call back method is executing after the end of all roster list items is there any faster way of getting image from vcard data, I don't want to save bitmap image in dictionary or any observation collection object ,
- private void GetVcard(Jid jid)
- {
- Model.Utility.xmppClient.IqFilter.SendIq(viq, VcardResponse);
- }
- private void VcardResponse(object sender, IqEventArgs e)
- {
- if (e.Iq.Type == Matrix.Xmpp.IqType.result)
- {
- var vc = e.Iq.Query as Vcard;
- if (null != vc.Photo)
- {
- try
- {
- ContactPhoto = vc.Photo.Image.UriSource;
- }
- catch (Exception ex)
- {
- }
- }
- else
- {
- }
- }
- }