title: Changing color of listbox items in Windows Phone 7
body: <p>I have a listbox for a Windows Phone 7 app that displays info parsed from an XML feed.
  I would like to be able to change the color of the font in the listbox, depending on the values parsed from the XML feed. I have searched and can't quite find exactly what I am looking for. Here is the code I have:</p>
  
  <pre><code>foreach (var item in doc.Descendants("station"))
  {
      if (item.Element("name").Value == dest)
      {
       listBox1.Items.Add(item.Element("name").Value);
       listBox1.Items.Add("Last Updated:");
       listBox1.Items.Add(item.Element("date").Value);
       listBox1.Items.Add(item.Element("time").Value);
  
           foreach (var item1 in item.Descendants("eta"))
           {
            listBox1.Items.Add(item1.Element("destination").Value);
            listBox1.Items.Add(item1.Element("estimate").Value);
           }//foreach
  
      }//if
  }//outer foreach
  </code></pre>
  
  <p>What I want is, for example, </p>
  
  <pre><code>if item.Element("name").Value="Fremont" and item1.Element("destination").Value="Daly City", 
  then listBox1.Items.Add(item1.Element("destination").Value);
  </code></pre>
  
  <p>will display green color text, for example (and so on for different values of "name" and "destination"). Most of the examples I found were for WPF or something else other than WP7. </p>