Reputation: 181
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
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