private void RestartButton_Click_1(object sender, RoutedEventArgs e) { Media2.Stop(); Media2.Play(); }
private void MediaElement2_MediaEnded(object sender, RoutedEventArgs e) { Media2.Stop(); Media2.Position = TimeSpan.Zero; Media2.Play(); }
private void StopButton_Click_1(object sender, RoutedEventArgs e) { playButton2.Content = "Play"; Media2.Stop(); }