public void Pause() { if (VideoPlayerElement.Source != null) { VideoPlayerElement.Pause(); this.Background = Brushes.DarkGray; MediaState = MediaState.Pause; } }