Windows Phone 7 study Note 3-text box input Scope

Source: Internet
Author: User

for WP7, you can set the input scope of the text box. That is to say, you can set an inaccessible keyboard for text input. For example, when you set a number, only the numeric keyboard is called, as is the case with email. Currently, there is no smart prompt when setting the scope of the text box. You can only query the API. This may be a problem with the WP7 version.

1. It can only be used for data input.

textblock text =" your number " style =" { staticresource phonetextlargestyle }"/>
textbox inputscope =" Number " name =" txtnumber " height =" 71 " width =" 460"/>

2,Enter personal name and information

  <TextblockText= "Your name"Style= "{StaticresourcePhonetextlargestyle} "/>
<TextboxInputscope= "Personalfullname" Name= "Txtname"Height= "71"Width= "460"/>

3. enter the address information

textblock text =" What country are you from? " style =" { staticresource phonetextlargestyle }"/>
textbox inputscope =" addresscountryname " name =" txtcountry " height =" 71 " width =" 460"/>

4. email

textblock text =" your email " style =" { staticresource phonetextlargestyle }"/>
textbox inputscope =" emailnameoraddress " name =" txtemail " height =" 71 " width =" 460 "/>

5. url

<TextblockText= "Your favorite website"Style= "{StaticresourcePhonetextlargestyle} "/>
<TextboxInputscope= "Url"Name= "Txtwebsite"Height= "71"Width= "460"/>

6,Phone number

textblock text =" call your best friend " style =" { staticresource phonetextlargestyle }"/>
textbox inputscope =" telephonenumber " name =" txtfriend " height =" 71 " width =" 460 "/>

 

six enumeration types are taken into consideration.

& Lt; TD width = "199" valign = "TOP" & gt; Url & lt;/TD & gt;

enumeration value

description

Number call the input keypad
personalfullname call the letter keyboard
addresscountryname call the letter keyboard
emailnameoraddress call a keyboard with @ and. com
WWW, HTTP. keyboard
telephonenumber call the keypad
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.