How to Play .mp3/.Wma Music in a Metro App

Here is how to do it: 1. Open VS 2012 for Windows 8 2. Create a new blank project of type Blank App/C# 3. Paste this code into the <Grid> element in MainPage.xaml XML<Grid.ColumnDefinitions> <ColumnDefinition></ColumnDefinition> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition></RowDefinition> </Grid.RowDefinitions> <MediaElement x:Name="mediaElement" Grid.Column="0" Grid.Row="0" IsMuted="False" Volume="100" AudioCategory="ForegroundOnlyMedia" PosterSource="Assets/Logo.png" RealTimePlayback="False" AutoPlay="True" Height="100" Width="100"></MediaElement> 4. Paste this code …

Read More How to Play .mp3/.Wma Music in a Metro App