title: WinRt media element binding C#
body: <p>I have DataTemplate and in it I need to play a binding MediaElemnt or mp3 sounds but i cant access it from code behind when I tap on an image inside this datatemplate </p>
  
  <pre><code>   &lt;Page.Resources&gt;
     &lt;DataTemplate x:Key="lol"&gt;
     &lt;Image  Height="52" Width="54"  Margin="282,-1,22,49" Source="ms-appx:///png/sound-icon.png" Tapped="Image_Tapped_1"  /&gt;      
      &lt;/DataTemplate&gt;
    &lt;/Page.Resources&gt;
  </code></pre>
  
  <p>I tried many ways but all of them didn't play the mp3 mainly like this :</p>
  
  <pre><code>        private void Image_Tapped_1(object sender, TappedRoutedEventArgs e)
          {
  
          }
          var music = new MediaElement()
          {
              AudioCategory = AudioCategory.ForegroundOnlyMedia,
              Source = new Uri(this.BaseUri, "ms-appx:/mp3/1.mp3")
          };
          music.Play();
  </code></pre>
  
  <p>Is there any idea to solve this problem ?</p>