Share via

MediaPlayerElement.MediaPlayer Property


Gets the MediaPlayer instance used to render media.

 property MediaPlayer ^ MediaPlayer { MediaPlayer ^ get(); };
MediaPlayer MediaPlayer();
public MediaPlayer MediaPlayer { get; }
var mediaPlayer = mediaPlayerElement.mediaPlayer;
Public ReadOnly Property MediaPlayer As MediaPlayer

Property Value

The MediaPlayer instance used to render media.


You can use the SetMediaPlayer method to change the underlying MediaPlayer instance. Changing the MediaPlayer can cause non-trivial side effects because it can change other properties of the MediaPlayerElement.

Applies to