コード例 #1
0
 private void PlayButton_Click_3(object sender, RoutedEventArgs e)
 {
     if (playButton4.Content.ToString() == "Play")
     {
         Media4.Play(); playButton4.Content = "Pause";
     }
     else
     {
         Media4.Pause(); playButton4.Content = "Play";
     }
 }
コード例 #2
0
 private void RestartButton_Click_3(object sender, RoutedEventArgs e)
 {
     Media4.Stop();
     Media4.Play();
 }
コード例 #3
0
 private void StopButton_Click_3(object sender, RoutedEventArgs e)
 {
     playButton4.Content = "Play";
     Media4.Stop();
 }