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 1097093
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:22:46+00:00 2026-05-17T00:22:46+00:00

I have a simple input form that consists of a single textbox and an

  • 0

I have a simple input form that consists of a single textbox and an “OK/Cancel” buttons. To save the user some taps, I bring the focus to the text box when the page is shown, so the keyboard pops up. At this point, I want the “Back” button to behave the same as cancel and navigate back if pressed, but what the thing actually does, it just removes the focus from the text box without even firing the BackKeyPress event. On the next press it does move back, but this is two clicks instead of one.

So I have two questions

  1. How to make the back button “go back” even when the keyboard is visible?
  2. Am I trying to do something bad from the standpoint of the WP7 interaction design?
  • 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-17T00:22:47+00:00Added an answer on May 17, 2026 at 12:22 am

    What you can do is handle the textbox’s KeyUp method. When a key is pressed, check if it’s the hardware back key. In my test, the hardware back key has a PlatformKeyCode of 27. I’m not sure if this changes between hardware devices. However, assuming it doesn’t, you could do the following:

        private void TextBox_KeyUp(object sender, System.Windows.Input.KeyEventArgs e)
        {
            if(e.PlatformKeyCode == 27)
            {
               //Navigation code
            }
    
        }
    

    As to whether this is a good idea, I’m not sure. The primary function of the back key, in regards to the on-screen keyboard, is to close the keyboard. This is what users will mostly experience throughout various applications, so that’s what they might expect from yours. However, since you’re SIP is automatically displayed, I guess you could argue it’s almost part of the layout itself. I couldn’t see anything in the UI Guidelines about it, but you should have a read in case I’ve missed something.

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

Sidebar

Related Questions

No related questions found

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.