Beispiel #1
0
 private void Pause()
 {
     ControlLabel.Text = "Pause";
     MyMediaPlayer1.Pause();
     StatusButton.Icon = new SymbolIcon(Symbol.Play);
     _isPlaying        = false;
 }
Beispiel #2
0
        private void SelectSong(object sender, TappedRoutedEventArgs e)
        {
            var selectItem = sender as StackPanel;

            MyMediaPlayer1.Pause();
            if (selectItem != null)
            {
                if (selectItem.Tag is Song currentSong)
                {
                    _currentIndex         = _mySongs.IndexOf(currentSong);
                    MyMediaPlayer1.Source = new Uri(currentSong.link);
                    Play();
                }
            }
        }
Beispiel #3
0
 protected override void OnNavigatedFrom(NavigationEventArgs e)
 {
     MyMediaPlayer1.Pause();
 }