How can we provide default Back key press behaviour to a custom button tap event in Windows Phone 8? - xaml

I'm developing an Windows Phone 8 application. In a page i have placed one Button and one textbox. When user Taps on textbox, the default keyboard comes up. Now, keyboard is on display mode and i clicked on button which navigates me to another screen. After navigation it is giving me half the screen size to be in black and that is actually keyboard. So can anyone tell me how to hide the keyboard first and then navigate to another screen?
Is it possible to assign override OnBackKeyPress method to the button control? If not, what is the other way to get out of this problem?

All you have to do is changing the focus from textbox to page. Just add this code to button's tap event:
this.Focus();

Related

X11 application to capture textfield focus

I am trying to write an application to show a popup whenever a user clicks on a textfield in any window. With the FocusIn event I was able to capture window focus, but not the textfield focus. Is it feasible to capture textfield focus with X11? If no, what alternates do I have, to capture textfield focus and maybe get properties of the textfield if possible?

Adding buttons to the Windows 8 on-screen keyboard

The Microsoft 'stocks' app has a row of buttons that are displayed at the top of the keyboard when you search for stocks:
(See the buttons just above the keyboard)
Is there a way to add these in my own app?
There is exactly the same question here and a person from Microsoft answered:
The keyboard is not extensible. What you see is the bottom AppBar on
top of the keyboard in that situation.
I think you should subscribe to Windows.UI.ViewManagement.InputPane.GetForCurrentView().Showing event, to show that application bar with suggestions when screen keyboard is shown.

Block ui when keyboard is up

I've seen a couple of apps that show a transparent view on top of the current ui while the keyboard is present and if clicked it hides the keyboard. I looked around the web and couldnt find a solution for this problem.
Simply add a UIButton, custom type, the size of your screen and add it to your view when your text field (or other entry) takes focus. Make sure your edit view is brought to the front of its superview at the point you add the button (to ensure the edit view still responds to touch).
Add a target to the button which dismisses the keyboard ([myTextfield resignFirstResponder]) and removes the button.
Also make sure to remove the button when the textField dismisses normally.

How do I detect when modal title bar is done blinking with WndProc?

I have a VB.net MDI app that contains a modal window (normal window shown as modal). I have a custom title bar button that disappears if the user clicks outside the modal area.
Normally, clicking off a modal will cause the system to beep and then flash the title bar of the modal window.
I want to know how to detect when the flashing is complete (using WndProc if possible) so I can redraw the custom button.
Anyone know how this could be done? Thanks!
It's been a while, but I believe your window should be receiving a WM_NCPAINT message when the frame needs to repaint.
It turns out that I had the WndProc(m) line in the wrong spot.

Finger scrollable UIWebView when the keyboard is up

In an application that I'm writing I have a UIWebview up top and some UITextFields at the bottom that I want the user to be able to type in depending on what's in the webview. But when they touch the Text Field and the keyboard pops up, the user loses the ability to manipulate the web page to see different parts.
Is there a way to keep the keyboard up and still be able to manipulate the UIWebView?
No I believe the Keyboard is modal so you can't access the form underneath it.
You can respond to the
- (void)keyboardWillShow:(NSNotification*)aNotification;
- (void)keyboardWillHidde:(NSNotification*)aNotification;
notifications and scroll the View up or down when the keyboard is shown...
Example here