private void Window_KeyDown(object sender, KeyEventArgs e) { switch (e.Key) { case Key.Space: MediaControl.Play(Video, pctPlay); break; case Key.Left: MediaControl.MooveBackward(Video); break; case Key.Right: MediaControl.MooveForward(Video); break; case Key.C: MediaControl.ActivateCc(lblSubtitle); break; } }
private void Button_Click(object sender, RoutedEventArgs e) { MediaControl.ActivateCc(lblSubtitle); }