我在做什么错了,请打?的Windows Phone 7使用Silverlight - MediaElement的不使用此代码
它不显示任何错误,不玩了。
MediaElement song = new MediaElement();
song.Source = new Uri(@"\WP7_aaa\WP7_aaa\GameSounds\MenuScreen.mp3", UriKind.Relative);
LayoutRoot.Children.Add(song);
song.AutoPlay = false;
song.Play();
哦,我只需要改变LayoutRoot的网格内,例如:ContentPanel.children ... 。=) – Fulano 2010-11-12 19:45:01