我在做什麼錯了,請打?的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