In the previous practical development tips for Windows Phone (14): hide a sip event in the input box, I talked about how to detect and click the physical rollback key in Windows Phone, SIP automatically hides events. If we want to hide forced sip on the Windows Phone page, for example, if we have entered some text in the text box, click AppBar, we want the page to jump or Goback after the SIP is hidden. What should we do at this time?
One trick is to forcibly remove the focus of textbox from the Click Event of the AppBar button, but the focus function is not removed from the textbox. At this time, I think of Eason Chan's love call transfer. we can focus on other controls, but this control cannot be Textbox, because if you focus on the input box, the SIP will automatically pop up.
In fact, we can focus on the entire page, because phoneapplicationpage also has the focus function.
This. Focus ();
In this way, the focus of the input box can be forcibly eliminated. I hope this tips will help you.