Projekt-Anfragen: Tel: 07022/9319004 info@CodeDocu.de Software Entwicklung in C# WPF Asp.Net Core Vba Excel Word SQL-Server EF Linq, UWP Net
#

Windows 10 Samples: ContactCards
 
 
Unter GitHub steht das Beispiel zur Programmierung von Windows 10 Apps bereit, welches zeigt wie man Kontaktdaten zu einer Email oder einer Telefonnummer anzeigen lässt als ContactCard.
Das gezeigte Beispiel zeigt die App auf dem Windows 10 Computer.
 
 
Contact cards sample
 
This sample shows how to show contact cards using methods of the ContactManager class.
This sample has three scenarios.
  • Show mini contact card

Mini contact cards appear as a pop-up window inside the app. Apps provide an anchor rectangle around which the mini card will be displayed and can provide a suggested position of the mini contact card relative to the anchor rectangle. TheShowContactCard method displays a mini contact card.

 
  • Show mini contact card with delay loaded-data

Display the mini contact card immediately while the app obtains additional information about the contact in the background. The card is updated when the additional information is available. The ShowDelayLoadedContactCardmethod displays a delay loaded mini contact card.
 

 
  • Show full contact card

Full contact cards appear as a separate window. The ShowFullContactCard method displays a full contact card.
 

 
 

 
Universal Windows Samples:
ContactCards

 
 

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 ShowContactCardWithPlacement_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 preferred placement to the right.
ContactManager.ShowContactCard(contact, rect, Placement.Right);
}
}
 
private void ShowContactCardWithOptions_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);
 
// Ask for the initial tab to be Phone.
ContactCardOptions options = new ContactCardOptions() { InitialTabKind = ContactCardTabKind.Phone };
 
// Show with default placement.
ContactManager.ShowContactCard(contact, rect, Placement.Default, options);
}
}

 
 
 
Unter GitHub
https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/ContactCards
Mobile
»
UWP: Hintergrund von Windows 10 Desktop ändern
»
UWP Sample: ContextMenu als XAML Flyout in Page Resources
»
UWP Sample: Context-Menu PopupMenu
»
UWP Sample: MediaEditing Bearbeiten von Videos
»
UWP Beispiel: Drawing Lines Ink
»
UWP Beispiel: Simple Imaging, Images Pictures
»
Win10 Sample: Title bar sample
»
Face Detection Sample #Win10
»
Win10 Sample: CameraGetPreviewFrame
»
Win10 Samples: CameraResolution Video and Photo

.

Jobs, Projekte, Angebote für Freiberufler, Selbstständig an Info@CodeDocu.de