/// <summary> /// The method whihc read the Contact Image /// </summary> /// <param name="c"></param> async void GetContactImage(ContactInformation c) { var imgStream = await c.GetThumbnailAsync(); ContactImage = new BitmapImage(); if (imgStream != null && imgStream.Size > 0) { ContactImage.SetSource(imgStream); } }
public ContactDetails(ContactInformation c) { PhoneNumbers = new List<string>(); ContactEmails = new List<string>(); CanShow = Visibility.Visible; ContactName = c.Name; if (c.PhoneNumbers.Count > 0) { foreach (var item in c.PhoneNumbers) { PhoneNumbers.Add(item.Value); } } else { CanShow = Visibility.Collapsed; } if (c.Emails.Count > 0) { foreach (var item in c.Emails) { ContactEmails.Add(item.Value); } } else { CanShow = Visibility.Collapsed; } GetContactImage(c); }