コード例 #1
0
 private void RestartButton_Click_1(object sender, RoutedEventArgs e)
 {
     Media2.Stop();
     Media2.Play();
 }
コード例 #2
0
 private void MediaElement2_MediaEnded(object sender, RoutedEventArgs e)
 {
     Media2.Stop();
     Media2.Position = TimeSpan.Zero;
     Media2.Play();
 }
コード例 #3
0
 private void StopButton_Click_1(object sender, RoutedEventArgs e)
 {
     playButton2.Content = "Play";
     Media2.Stop();
 }