Delen via


Managing contact cards (XAML)

[This article is for Windows 8.x and Windows Phone 8.x developers writing Windows Runtime apps. If you’re developing for Windows 10, see the latest documentation]

Through the Windows.ApplicationModel.Contacts.ContactManager class, you have several options for showing a contact card. Here, we'll show you how to display a contact card by using initial data in the Contact object and also by using a ContactCardDelayedDataLoader object to update the contact card in a delayed fashion. Displaying contact cards is supported starting with Windows 8.1.

Objective: Learn how to show contact data in a contact card.

Prerequisites

  • We recommend that you be familiar with Microsoft Visual Studio and its associated templates.
  • We recommend that you be familiar with C# development.

Total time to complete: 30 minutes.

Where to go from here

Here we talk about how to display a contact card by referencing the Contact manager API sample. This sample demonstrates how to use the ContactManager methods from within Windows Store apps.

We show you how to:

  • Create a contact and apply data to it.
  • Show the contact data in a contact card.
  • Update the contact card with more contact data.
  • Use the contact card to perform operations, such as, adding the contact to the People app, getting details about the contact if it's already in the People app, or calling a phone number that is associated with the contact.

Next, we'll create a contact, apply data to it, and then display that data in a contact card.

Showing contact data in a contact card

Contact

ContactCardDelayedDataLoader

ContactManager