This question is locked. New answers and comments are not allowed.
Hi,
I'm trying to bind JumpList to Microsoft Windows Phone Contacts but I'm having a cast problem.
Anybody can help me with a sample?
See my code below.
Contacts contacts = new Contacts();
//Identify the method that runs after the asynchronous search completes.
contacts.SearchCompleted += new EventHandler<ContactsSearchEventArgs>(Contacts_SearchCompleted);
//Start the asynchronous search.
contacts SearchAsync(String.Empty, FilterKind.None, null);
...
void Contacts_SearchCompleted(object sender, ContactsSearchEventArgs e)
{
try
{
//Bind the results to the jump list that displays them in the UI
jumpList.DataContext = e.Results; //<==Exception here...
}
catch (System.Exception)
{
//That's okay, no results
}
}
I'm trying to bind JumpList to Microsoft Windows Phone Contacts but I'm having a cast problem.
Anybody can help me with a sample?
See my code below.
Contacts contacts = new Contacts();
//Identify the method that runs after the asynchronous search completes.
contacts.SearchCompleted += new EventHandler<ContactsSearchEventArgs>(Contacts_SearchCompleted);
//Start the asynchronous search.
contacts SearchAsync(String.Empty, FilterKind.None, null);
...
void Contacts_SearchCompleted(object sender, ContactsSearchEventArgs e)
{
try
{
//Bind the results to the jump list that displays them in the UI
jumpList.DataContext = e.Results; //<==Exception here...
}
catch (System.Exception)
{
//That's okay, no results
}
}