Setting source for MediaElement in windows phone 7?

前端 未结 1 950
滥情空心
滥情空心 2021-01-25 11:12

I\'m trying to set the source of a media element in C#. This is what I\'m doing

XAML Part



        
相关标签:
1条回答
  • 2021-01-25 11:59

    Do you get an error, or does it just not play? Try adding a forward slash, Dovahkiin:

    this.Sound.Source = new Uri("/Sounds/fusrodah.wma", UriKind.Relative);
    
    0 讨论(0)
提交回复
热议问题