Textbox accumulation in Windows Phone

Source: Internet
Author: User

 

1. If you want to set the type of the call keyboard, you can set the inputscope attribute of textbox. Microsoft provides us with a wide range of types. For example, chat contains a series of emojis and supports automatic text filling.

2. Hopefully there will be emoticon in text, which can be implemented using RichTextBox. I will share the detailed implementation process later. For details, refer:Http://www.cnblogs.com/zhangfan19900327/archive/2013/05/27/3101914.html

3. In the other two days, an application similar to Weibo was created, in which the textbox problem was encountered.

To provide a better user experience, you can activate the keyboard and display the input status when you enter the Weibo page.

The function is simple, but you needProgramI have some understanding of the implementation principles (sometimes ignored). Otherwise, many unexpected errors may occur. This is my accumulated experience and I hope that people who use it for the first time can take less detours.

 

The idea is clear, as long as the textbox gets the focus, such as textbox. Focus.

However, some problems exist.

When I first wrote this method to the initialization function (habitually put it into the initialization function, and everyone should take it as a precaution), the result has never been activated. The reason is that the control is not loaded yet when this method is executed. That is to say, it should be written to layoutupdated, and it should be successfully activated.

However, when you want to execute other method events on this page, your layoutupdated event will still be executed, so you 'd better add a judgment to make your "textbox. focus (); "is executed only once.(Note: If you write in a loaded () event, you don't have to consider it. It depends on the actual situation)

Otherwise, you will find that when you use this. Focus (); to make the textbox lose the focus, the textbox does not lose the focus, but jumps.

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.