Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 856957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T08:19:18+00:00 2026-05-15T08:19:18+00:00

One consequence of the keyboard-restriction change is that pressing ESC will not exit full-screen

  • 0

One consequence of the keyboard-restriction change is that pressing ESC will not exit full-screen mode in trusted applications. This enables you to use the ESC key for other functionality. However, you must provide your own user interface for exiting full-screen mode.

Reference: http://msdn.microsoft.com/en-us/library/ee721083(v=VS.95).aspx#fullscreen_support

I need to make pressing ESC will exit from full-screen mode in trusted application without provide a UI control in all pages.

Please give me hints, thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T08:19:19+00:00Added an answer on May 15, 2026 at 8:19 am

    This is the way you do it.

     private void UserControl_KeyDown(object sender, KeyEventArgs e)
     {
         if (e.Key == Key.Escape && App.Host.Content.IsFullScreen)
         {
             App.Host.Content.IsFullScreen = false;
         }
    }
    
    private void UserControl_Load(object sender, RoutedEventArgs e)
    {
        this.AddHandler(UIElement.KeyDownEvent, new KeyEventHandler(UserControl_KeyDown), true);
    }
    

    By using the AddHandler method you can indicate that you want to recieve the keydown event regardless of whether it has been marked as handled by another control. Hence regardless of what control currently has the focus, the pressing of the Esc key should bubble up to the top.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's the scenario: Process 1 (P1) - reads in various flat files one consequence
One of the neat characteristics of UTF-8 is that if you compare two strings
I recently learned that sometimes people will lock specific processes or threads to specific
I'm writing a small web app that will receive and parse tab-delimited text files
I'm building a string based on selected checkboxes. I wrote a statement that will
The original words are One reason that the distinction between process and procedure may
I was wondering what the consequences are for compiling a class A with one
one question about PHP Development. I am building up some Form Fields for Calculations.
One of my action outputs a csv file. The problem is if a field
One of my processes is restarting over and over apparently because of following messages

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.