我想在此处将 DisplayName 导航到下一页 我粘贴了一个代码,DisplayName 无法导航到下一页
this.DisplayedContacts = new ObservableCollection<string>();
this.DataContext = this.DisplayedContacts;
var contacts = new Contacts();
contacts.SearchCompleted += (s, e) =>
{
foreach (var contact in e.Results)
{
this.DisplayedContacts.Add(contact.DisplayName + " - " +
(contact.PhoneNumbers.Any()
? contact.PhoneNumbers.First().PhoneNumber
: string.Empty));
} };
contacts.SearchAsync(string.Empty, FilterKind.DisplayName, null);
}
void MakeCall(bool bWithVideo)
{
NavigationService.Navigate(new Uri(NavigationUri.BuildMakeCallUriString("/CallPage.xaml", DisplayName, bWithVideo), UriKind.Relative));
}
public ObservableCollection<string> DisplayedContacts { get; set; }
private void callcon_Click_1(object sender, RoutedEventArgs e)
{
MakeCall(e.OriginalSource == callcon);
}
public string PhoneNumbers { get; set; }
public string DisplayName { get; set; }