private void PlayButton_Click_1(object sender, EventArgs e)
{
var playButton = ApplicationBar.Buttons[0] as ApplicationBarIconButton;
if (BackgroundAudioPlayer.Instance.PlayerState == PlayState.Playing)
{
playButton.Text = "Play";
playButton.IconUri = new Uri("/Images/play.png", UriKind.Relative);
BackgroundAudioPlayer.Instance.Stop();
}
else
{
_viewModel.Busy = true;
playButton.Text = "Stop";
playButton.IconUri = new Uri("/Images/pause.png", UriKind.Relative);
BackgroundAudioPlayer.Instance.Play();
}
}