Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的应用程序中,我有一个按钮,您可以单击该按钮以发送包含某些内容的电子邮件。但是我想知道如何通过某种联系人选择器从电话联系人中选择电子邮件联系人?
有没有我可以使用的内置联系人选择器?
非常感谢!
您可以使用EmailAddressChooserTask
EmailAddressChooserTask eact = new EmailAddressChooserTask(); eact.Completed += eact_Completed; eact.Show(); void eact_Completed(object sender, EmailResult e) { if (e.TaskResult == TaskResult.OK) { string selectedEmail = e.Email; } else { //nothing chosen } }