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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access