private void ShowContactCard_Click(object sender, RoutedEventArgs e) { Contact contact = rootPage.CreateContactFromUserInput(EmailAddress, PhoneNumber); if (contact != null) { // Show the contact card next to the button. Rect rect = MainPage.GetElementRect(sender as FrameworkElement); // Show with default placement. ContactManager.ShowContactCard(contact, rect); } }
private void ShowContactCard_Click(object sender, RoutedEventArgs e) { Contact contact = rootPage.CreateContactFromUserInput(EmailAddress, PhoneNumber); if (contact != null) { // Try to share the screen half/half with the full contact card. FullContactCardOptions options = new FullContactCardOptions(); options.DesiredRemainingView = ViewSizePreference.UseHalf; // Show the full contact card. ContactManager.ShowFullContactCard(contact, options); } }