title: Unable to show the selected item in the Wp7 Listpicker control
body: <p>Basically i am trying to pull the contacts from the phone and showing them in the Listpicker control for a feature in my app. I have two Listpickers, one for name of contacts list and the other showing the list of phonenumbers for the chosen contact. </p>
  
  <p>Here is my code:</p>
  
  <pre><code>//Declarations
  
  ContactsSearchEventArgs e1;
  String SelectedName;
  String SelectedNumber;
  List&lt;string&gt; contacts = new List&lt;string&gt;();
  List&lt;string&gt; phnum = new List&lt;string&gt;();
  
  
   public AddressBook() // Constructor 
      {
          InitializeComponent();
          Contacts contacts = new Contacts();
          contacts.SearchCompleted += new EventHandler&lt;ContactsSearchEventArgs&gt;(contacts_SearchCompleted);
          contacts.SearchAsync(string.Empty,FilterKind.None,null);            
      }
  
   void contacts_SearchCompleted(object sender, ContactsSearchEventArgs e) 
      {          
         e1 = e;
  
              foreach (var result in e.Results)
              {        
  
                  if (result.PhoneNumbers.Count() != 0)
                  {
  
                      contacts.Add(result.DisplayName.ToString());
                  }                      
  
              }
  
          Namelist.ItemsSource = contacts; 
  
      }
  
   private void Namelist_SelectionChanged(object sender, SelectionChangedEventArgs e)
      {
          SelectedName = (sender as ListPicker).SelectedItem.ToString();
          phnum.Clear();            
          foreach (var result in e1.Results)
          {
              if (SelectedName == result.DisplayName)
              {
  
                  phnum.Add(result.PhoneNumbers.FirstOrDefault().ToString());
  
              }
          }
  
          Numbers.ItemsSource = phnum;            
      }
  
  private void Numbers_SelectionChanged(object sender, SelectionChangedEventArgs e)
      {
  
          SelectedNumber = (sender as ListPicker).SelectedItem.ToString();
  
      }
  </code></pre>
  
  <p>Am able to populate the Numberlist with phonenumbers for the chosen name at the Listpicker background, but the number is not showing up in the front. I think Numbers_SelectionChanged() event is called only one time when the page loads and am not seeing it triggerd when i change the contact list. Anyone has an idea of where am going wrong ?</p>