Windows Phone practical development tips (23): Force disable sip

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.