[Winodows Phone 7 control details] input control

Source: Internet
Author: User

In phone7, there are actually two main input controls: textbox and password. These two controls, especially textbox controls, have many new features.

I.Passwordbox: Password box control, which is used to input custom mask characters.

<PasswordBox x:Name="passwordBox1" Height="72" HorizontalAlignment="Left" Margin="6,40,0,0"  VerticalAlignment="Top" Width="460" />            

Passwordchar: Set the display character of the password.

Passwordbox1.password: get the password value.

ReadOnlyTB.Text = passwordBox1.Password;

II.Textbox: Input box control.

<TextBox  InputScope= "TelephoneNumber" Height="72" HorizontalAlignment="Left" Margin="6,135,0,0" Name="textBox1" Text="TextBox" VerticalAlignment="Top" Width="460" />     

Text: set or obtain the text to be entered.

Isreadonly: Set whether input is allowed.

Selectionbackground: sets the background color of the selected text in the input box.

Selectionforground: Set the font color of the selected text in the input box.

Selectedtext: Get the selected text in the input box. It can be used in the selectionchanged event.

Inputscope: The keyboard can have different key-plane effects for easy input.

You can also set it as follows:

<TextBox.InputScope>
<InputScope>
<InputScopeName NameValue="Text"></InputScopeName>
</InputScope>
</TextBox.InputScope>

For available values for inputscope, see msdn: http://msdn.microsoft.com/en-us/library/system.windows.input.inputscopenamevalue (V = vs.95). aspx

Common Value: Text: Lenovo input added to the soft keyboard

Telephonenumber: the keys and planes are displayed as numbers.

URL: the key area shows. com.

 

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.