Being a Contact Source

To show a contact card, you need to provide Windows with as much information you have about the contact and tell Windows where to show the card. You do this by calling the static ContactManager.ShowContactCard method from the Windows.ApplicationModel.Contacts namespace. It accepts a Contact instance, which you should create and fill with as much relevant information as you can, and a Rect representing the position of the element that already shows the contact in your app’s user interface. Windows places the contact card flyout adjacent to this region, but it also does its best not to cover it up.

For example, if you are displaying an email address in an element named element and want to show the contact card when it is ...

Get Universal Windows® Apps with XAML and C# Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.