UWP MediaPlayerElement FullWindowButton Click event

Mahdi 1 Reputation point
2021-01-17T19:19:42.507+00:00

I want a event occur when user click the Full-Window-button ( inside Media-Player-Element ) and a code like the following code is executed, But I did not find the right event for this.

if (mediaPlayerElement.IsFullWindow)  
{  
    mediaPlayerElement.PosterSource = new BitmapImage(new Uri("ms-appx:///Assets/Images/DMF.jpg"));  
}  
else  
{  
    mediaPlayerElement.PosterSource = null;  
}  

57392-58r3l.png

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
39,571 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.