title: MediaElement Windows Phone 7
body: <p>I'm creating a little app to help me better understand how to play sounds on WP7 devices but I'm having a problem actually getting the sound to come out of the device.</p>
  
  <p>I have the following code:</p>
  
  <pre><code>&lt;MediaElement x:Name="note1" Source="test.mp3" AutoPlay="False" /&gt;
  
  private void btn1_Click(object sender, RoutedEventArgs e)
  {
      note1.Source = new Uri("test.mp3", UriKind.Relative);
      note1.Play();
  }
  </code></pre>
  
  <p>Where test.mp3's Build Action is a Resource.</p>
  
  <p>The thing I don't understand is when I add a breakpoint on the method btn1_Click and I stop at note1.Play() it actually plays test.mp3 but when debug without breakpoints and click on the button I hear nothing.</p>
  
  <p>Is there a way to fix this issue?</p>