private void Smtc_ButtonPressed(SystemMediaTransportControls sender, SystemMediaTransportControlsButtonPressedEventArgs args) { switch (args.Button) { case SystemMediaTransportControlsButton.Play: mediaPlayer.Play(); break; case SystemMediaTransportControlsButton.Pause: mediaPlayer.Pause(); break; case SystemMediaTransportControlsButton.Stop: mediaPlayer.Pause(); break; case SystemMediaTransportControlsButton.Record: break; case SystemMediaTransportControlsButton.FastForward: break; case SystemMediaTransportControlsButton.Rewind: break; case SystemMediaTransportControlsButton.Next: Switch(); break; case SystemMediaTransportControlsButton.Previous: Switch(); break; case SystemMediaTransportControlsButton.ChannelUp: break; case SystemMediaTransportControlsButton.ChannelDown: break; default: break; } }