private void RestartButton_Click(object sender, RoutedEventArgs e) { Media1.Stop(); Media1.Play(); }
private void MediaElement1_MediaEnded(object sender, RoutedEventArgs e) { Media1.Stop(); Media1.Position = TimeSpan.Zero; Media1.Play(); }
private void StopButton_Click(object sender, RoutedEventArgs e) { playButton1.Content = "Play"; Media1.Stop(); }