Exemplo n.º 1
0
        private async void btPause_Click(object sender, EventArgs e)
        {
            if (_player == null)
            {
                return;
            }

            if (btPause.Text == "Pause")
            {
                await _player.PauseAsync();

                btPause.Text = "Resume";
            }
            else
            {
                await _player.ResumeAsync();

                btPause.Text = "Pause";
            }
        }
 private async void btPause_Click(object sender, RoutedEventArgs e)
 {
     await _player.PauseAsync();
 }