Here is my problem : I have a LongListSelector which list songs from MediaLibrary and a SelectionChanged event. When the user taps on a song from the LongListSelector, it plays the song once, but then then it stops. But I'd like to play next song from the MediaLibrary once the selected song is finished
Here is my LongListSelector :
<phone:LongListSelector x:Name="llsSongs" SelectionChanged="llsSongs_SelectionChanged" Margin="0,-30,0,0">
<phone:LongListSelector.ItemTemplate>
<DataTemplate>
<StackPanel Margin="5,5,5,5">
<TextBlock Text="{Binding Name}" FontSize="20" Foreground="Black"/>
<TextBlock Text="{Binding Artist}" FontSize="15" Opacity="0.75" Foreground="Black"/>
</StackPanel>
</DataTemplate>
</phone:LongListSelector.ItemTemplate>
</phone:LongListSelector>
and the SelectionChanged method
private void llsSongs_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
Song _selectedSong = llsSongs.SelectedItem as Song;
MediaPlayer.Play(_selectedSong);
}