We have the Windows.ApplicationModel.Contacts.ContactPicker
to pick an contact from our contact list.
var contactPicker = new ContactPicker();
contactPicker.DesiredFieldsWithContactFieldType.Add(ContactFieldType.PhoneNumber);
Contact contact = await contactPicker.PickContactAsync();
if (contact?.Phones[0] is ContactPhone)
{
foreach (ContactPhone phone in contact.Phones)
{
var result = phone.Number;
// ...
}
}
else
{
// ...
}
But is it posible to get the holders mobile phone? I need to retrieve the phone number of the current phone holder.