예제 #1
0
 private void PauseOrPlayControl()
 {
     if (VideoPlace.CurrentState == MediaElementState.Paused)
     {
         VideoPlace.Play();
         BigControlPlayOrPause.Content = "\uE103";
         PauseOrPlay.Content           = "\uE103";
         VideoPlace.Width    = 800;
         ControlPanel.Width  = 800;
         VideoCut.Visibility = Visibility.Collapsed;
     }
     else
     {
         VideoPlace.Pause();
         BigControlPlayOrPause.Content = "\uE102";
         PauseOrPlay.Content           = "\uE102";
         VideoPlace.Width    = 400;
         ControlPanel.Width  = 400;
         VideoCut.Visibility = Visibility.Visible;
     }
 }
예제 #2
0
 private void Stop_Click(object sender, RoutedEventArgs e)
 {
     VideoPlace.Stop();
 }