Full screen toggling in Silverlight

If you would like to push browser in and out of full screen mode from Silverlight application, you can do this very easily.

To go full screen:

Application.Current.Host.Content.IsFullScreen = true

To go to normal display:

Application.Current.Host.Content.IsFullScreen = false

Since Application.Current.Host.Content.IsFullScreen is a property, you can also test for current mode.

Leave a Reply

Your email address will not be published. Required fields are marked *