title: Windows 8 Mobile Button Background not responding?
body: <p>I am trying to change the background color of a button dynamically in a windows 8 mobile application. </p>
  
  <p>The button from Mainpage.xaml:</p>
  
  <pre><code> &lt;Button Name="RedButton" Click="RedButton_Click_1" Width="200" Height="100" Content="Red" Margin="136,171,144,497"/&gt;
  </code></pre>
  
  <p>Code from Mainpage.xaml.cs</p>
  
  <pre><code>                    Dispatcher.BeginInvoke(delegate()
                  {
  
                      RedButton.Background = new SolidColorBrush(Colors.Red); 
  
                  });
  </code></pre>
  
  <p><strong>The code does not modify the background of the red button object at all.</strong> What is causing this communication?  </p>