Open MediaElement in FullScreen?

Make your MediaElement the RootVisual of the app. Since you can't change the RootVisual once it's assigned you need to do something like so private MainPage _mainPage = new MainPage(); private MediaElement _media = new MediaElement(); private void Application_Startup(object sender, StartupEventArgs e) { Grid grid = new Grid(); grid.Children. Add(_mainPage); this.

RootVisual = grid; } public void FullscreenVideo() { (this. RootVisual as Grid).Children.Clear(); (this. RootVisual as Grid).Children.

Add(_media); Application.Current.Host.Content. IsFullScreen = true; } If you call FullscreenVideo it should load your MediaElement into a fullscreen window.

I can't seem to see it from another page. – Zee99 Aug 12 '10 at 7:24 When you switch the app to fullscreen now instead just change it to call (Application. Current as App).FullscreenVideo(); – Stephan Aug 12 '10 at 15:29 Thanks, but im receiving this error when I click on the fullscreen button (ELement is already the child of another element).

Any ideas? – Zee99 Aug 13 '10 at 11:37 You will need to remove the MediaElement from it's current container before adding it to the Application.RootVisual.To be honest with you I'm not sure what the best way to manage this will be. You probably want to do something like passing the _media object to your MainPage and add that MediaElement to the MainPage in code.

Then before calling FullscreenVideo() you need to remove it from the container you added it to and then add it back after you exit fullscreen. – Stephan Aug 13 '10 at 18:28.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions