Example #1
0
 private void PauseOrPlayControl()
 {
     if (MyVideo.CurrentState == MediaElementState.Paused)
     {
         MyVideo.Play();
         PauseOrPlay.Content           = "\uE103";
         BigControlPlayOrPause.Content = "\uE103";
     }
     else
     {
         MyVideo.Pause();
         PauseOrPlay.Content           = "\uE102";
         BigControlPlayOrPause.Content = "\uE102";
     }
 }
Example #2
0
        private void Reproducir_Pausa(object sender, RoutedEventArgs e)
        {
            try
            {
                MyVideo.Play();
                estado = true;

                ReproducirBtn.Visibility = Visibility.Collapsed;
                Pausar.Visibility        = Visibility.Visible;
            }
            catch (Exception)
            {
                MessageBox.Show("Ni idea");
                throw;
            }
        }