Dhinesh
Dhinesh

Reputation: 181

Is it possible to set a page fullscreen in silverlight, not to normal?

I am creating a Silverlight application where the user clicks to full screen mode. I want to disable the exit full screen mode option even if he minimizes the screen/not active in that screen. Is there a way for it?

Upvotes: 0

Views: 219

Answers (1)

Sajeetharan
Sajeetharan

Reputation: 222592

This will prevent the user from Exiting full screen

private void Page_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Escape && App.Current.Host.Content.IsFullScreen)
        {
            App.Current.Host.Content.IsFullScreen = true;
        }
}

Upvotes: 1

Related Questions