title: Change Button Text - Windows Phone 7
body: <p>How do you change the text of a button in Windows Phone 7 and C#?  NullPointer Exception too, if I am doing the changing of the button text right, what is the problem?    </p>
  
  <pre><code>public void CreateWords(Word[] theWords)
  {
      listOfWords = new Button[theWords.Length]; //Button Array
      textBlock1.Text = theWords[0].getWord(); //Totally Works
      for (int i = 0; i &lt; theWords.Length; i++)
      {
          listOfWords[i].Content = theWords[0].getWord(); //NullPointer Exception
      }
  
      for (int i = 0; i &lt; theWords.Length; i++)
      {
          stackWords.Children.Add(listOfWords[i]);
      }
  }
  </code></pre>